Mercurial > octave-nkf
changeset 17530:0f45d9dd8107
test: Fix 4 failing plot demos.
* scripts/plot/legend.m: Demo #11, use 'h' for returned handle.
* scripts/plot/plot.m: Fix typo "lenths" -> "lengths".
* scripts/plot/ribbon.m: Remove unnecessary call to meshgrid now
that sombrero returns meshgridded data.
* scripts/plot/trimesh.m: Set colormap so plot is always reproducible.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 01 Oct 2013 15:39:20 -0700 |
parents | ec5bd610a11f |
children | bed7ec6f9855 |
files | scripts/plot/legend.m scripts/plot/plot.m scripts/plot/ribbon.m scripts/plot/trimesh.m |
diffstat | 4 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/legend.m Tue Oct 01 15:30:20 2013 -0700 +++ b/scripts/plot/legend.m Tue Oct 01 15:39:20 2013 -0700 @@ -1257,7 +1257,7 @@ %! plot (x, x, ';\alpha;', ... %! x, 2*x, ';\beta=2\alpha;', ... %! x, 3*x, ';\gamma=3\alpha;'); -%! hl = legend (); +%! h = legend (); %! set (h, 'interpreter', 'tex'); %! title ('Labels with interpreted Greek text');
--- a/scripts/plot/plot.m Tue Oct 01 15:30:20 2013 -0700 +++ b/scripts/plot/plot.m Tue Oct 01 15:39:20 2013 -0700 @@ -265,7 +265,7 @@ %! x = 0:10; %! plot (repmat (x, 2, 1), rand (2, numel (x)), '-s') %! axis ([0 10 0 1]) -%! title ({'Vertical lines with random height and lenths', ... +%! title ({'Vertical lines with random height and lengths', ... %! 'x[2x11], y[2,11]'}) %!demo