Search Comments and Ratings

go

   
Date File Comment by Comment Rating
28 Jun 2012 winpos positions figure windows according to input string Author: Deborah

Deborah

Elad

Elad

example plz

Comment only
21 Jun 2012 Find unused plot color Find the first unused default color in a plot or generate a random one. Author: Deborah

Deborah

Jan Simon

Jan Simon

Works as explained in the help text, has a H1-line to support LOOKFOR, date, author, version history, comments in the code, efficient, useful and usable.

5
13 Jun 2012 Find unused plot color Find the first unused default color in a plot or generate a random one. Author: Deborah

Deborah

Deborah

Deborah

Thanks again Jan for your suggestions to improve the code quality, I'll soon upload an updated version!

Comment only
13 Jun 2012 winpos positions figure windows according to input string Author: Deborah

Deborah

Deborah

Deborah

Thanks Jan for your suggestions, I will implement them in a future version of the function!

Comment only
12 Jun 2012 winpos positions figure windows according to input string Author: Deborah

Deborah

Jan Simon

Jan Simon

A good idea.
You can omit the time-consuming STRMTACH check: On one hand FIND(STRCMP()) is much faster and supported in the future also, you can move the error handling to an OTHERWISE branch of the SWITCH list instead. Currently the comparision of the position strin g is done twice.
I'd prefer "North", "NorthEast", ... or "TopLeft", "TopCenter", ... instead of "HL", "HR", ... But the diagram in your help text is such descriptive, that your naming method is usable.
Your help text has a H1 line, is descriptive and specifies the date and the author. The units of the figure are considered.

5
12 Jun 2012 Find unused plot color Find the first unused default color in a plot or generate a random one. Author: Deborah

Deborah

Jan Simon

Jan Simon

The function fails, if a line was drawn using a CHAR color specifier as 'r', 'g', 'b' etc.
The first line of the help text should be "not present in the axes", not "...in the figure".
"NaN(length(h_lines), 3)" is faster than "ones()*NaN". But ZEROS() would do it also, because all values are overwritten soon.
The search for the color can be simplified:
found = any(default_color(k,1)==curr_color(:,1) & default_color(k,2)==curr_color(:,2) & default_color(k,3)==curr_color(:,3));
Or an equivalent BSXFUN approach.
A simple "setdiff(default_color, curr_color, 'rows')" would reduce the code complexity also.
Instead of using the DefaultAxesColorOrder, you could use the ColorOrder of the actual axes object.

Comment only

Contact us