changeset 18885:a8cacb2e98da

line.m: Add new %!demo of different linestyles. * line.m: Add new %!demo of different linestyles.
author Rik <rik@octave.org>
date Tue, 01 Jul 2014 09:41:50 -0700
parents 04a00ba54557
children cff49c82f722
files scripts/plot/draw/line.m
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/draw/line.m	Mon Jun 30 21:11:38 2014 -0700
+++ b/scripts/plot/draw/line.m	Tue Jul 01 09:41:50 2014 -0700
@@ -64,6 +64,16 @@
 
 %!demo
 %! clf
+%! line ([0 1], [0.8 0.8], 'linestyle', '-', 'color', 'b');
+%! line ([0 1], [0.6 0.6], 'linestyle', '--', 'color', 'g');
+%! line ([0 1], [0.4 0.4], 'linestyle', ':', 'color', 'r');
+%! line ([0 1], [0.2 0.2], 'linestyle', '-.', 'color', 'k');
+%! ylim ([0 1]);
+%! title ('line() with various linestyles');
+%! legend ('"-"', '"--"', '":"', '"-."', 'location', 'eastoutside');
+
+%!demo
+%! clf
 %! x = 0:0.3:10;
 %! y1 = cos (x);
 %! y2 = sin (x);