changeset 17026:be52288f827b

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.
author Rik <rik@octave.org>
date Sat, 20 Jul 2013 18:46:38 -0700
parents 75d115e329b7
children e0cd6299842c
files scripts/plot/axis.m scripts/plot/fplot.m scripts/plot/stemleaf.m
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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
--- 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