# HG changeset patch # User Rik # Date 1404232910 25200 # Node ID a8cacb2e98daa18bf8d2dd5910992075e75758ef # Parent 04a00ba54557cc901a7351a455c6992eb6a628fd line.m: Add new %!demo of different linestyles. * line.m: Add new %!demo of different linestyles. diff -r 04a00ba54557 -r a8cacb2e98da scripts/plot/draw/line.m --- 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);