# HG changeset patch # User Rik # Date 1374371198 25200 # Node ID be52288f827b561f87cbe699feb7829729d18a4e # Parent 75d115e329b78b9daf029801011cd10c3521c1ff Tweak some plotting demos for messages and spelling. * scripts/plot/axis.m: Correct typo "p" -> "pi"; * scripts/plot/fplot.m: Change sinc function definition to put constant "pi" first. * scripts/plot/stemleaf.m: Fix failing demo missing caption argument. diff -r 75d115e329b7 -r be52288f827b scripts/plot/axis.m --- a/scripts/plot/axis.m Sat Jul 20 18:42:25 2013 -0700 +++ b/scripts/plot/axis.m Sat Jul 20 18:46:38 2013 -0700 @@ -486,7 +486,7 @@ %! axis ('autox'); %! %! subplot (325); -%! plot (t, x, ';sine [0:2p];'); +%! plot (t, x, ';sine [0:2pi];'); %! title ('axes at [3 6 0 1], then autoy'); %! axis ([3,6,0,1]); %! axis ('autoy'); @@ -501,7 +501,7 @@ %! x = 0:0.1:10; %! plot (x, sin(x)); %! axis image; -%! title ('image'); +%! title ({'image', 'equivalent to "tight" & "equal"'}); %!demo %! clf; diff -r 75d115e329b7 -r be52288f827b scripts/plot/fplot.m --- a/scripts/plot/fplot.m Sat Jul 20 18:42:25 2013 -0700 +++ b/scripts/plot/fplot.m Sat Jul 20 18:46:38 2013 -0700 @@ -180,7 +180,7 @@ %!demo %! clf; %! ## sinc function -%! fh = @(x) sin (x*pi) ./ (x*pi); +%! fh = @(x) sin (pi*x) ./ (pi*x); %! fplot (fh, [-5, 5]); %!test diff -r 75d115e329b7 -r be52288f827b scripts/plot/stemleaf.m --- a/scripts/plot/stemleaf.m Sat Jul 20 18:42:25 2013 -0700 +++ b/scripts/plot/stemleaf.m Sat Jul 20 18:46:38 2013 -0700 @@ -332,7 +332,7 @@ %!demo %! %% Gaussian leaves: %! x = fix (30 * randn (300,1)); -%! stemleaf (x); +%! stemleaf (x, 'Gaussian leaves'); %!test %! ## test minus to plus