Mercurial > hg > octave-max
diff scripts/plot/legend.m @ 8915:485eabc0cfec
__go_draw_axes__.m: Preserve the order of axes' children when pruning the handles for the {x,y,z}labels and title.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Fri, 06 Mar 2009 01:07:04 -0500 |
parents | a013ff655ca4 |
children | eb63fbe60fab |
line wrap: on
line diff
--- a/scripts/plot/legend.m +++ b/scripts/plot/legend.m @@ -243,7 +243,8 @@ %! clf %! labels = {}; %! for i = 1:5 -%! plot(1:100, i + rand(100,1)); hold on; +%! h = plot(1:100, i + rand(100,1)); hold on; +%! set (h, "color", get (gca, "colororder")(i,:)) %! labels = {labels{:}, cstrcat("Signal ", num2str(i))}; %! endfor; hold off; %! title("Signals with random offset and uniform noise")