Mercurial > hg > octave-lyh
diff scripts/plot/plot.m @ 15015:fee211d42c5c
Add demos for plot.m (bug #36939).
* plot.m: Add 3 demos (bug #36939).
author | Rik <rik@octave.org> |
---|---|
date | Wed, 25 Jul 2012 16:30:39 -0700 |
parents | 460a3c6d8bf1 |
children | 08dd9458684a |
line wrap: on
line diff
--- a/scripts/plot/plot.m +++ b/scripts/plot/plot.m @@ -205,5 +205,20 @@ endfunction -%% FIXME: Need demo or test for function +%!demo +%! x = 1:5; y = 1:5; +%! plot (x,y,'g'); +%! title ('plot of green line at 45 degrees'); +%!demo +%! x = 1:5; y = 1:5; +%! plot (x,y,'g*'); +%! title ('plot of green stars along a line at 45 degrees'); + +%!demo +%! x1 = 1:5; y1 = 1:5; +%! x2 = 5:9; y2 = 5:-1:1; +%! plot (x1,y1,'bo-', x2,y2,'rs-'); +%! axis ('tight'); +%! title ('plot of blue circles ascending and red squares descending with connecting lines drawn'); +