changeset 18337:313ebc905e38

fill.m: Add titles to %!demos. * fill.m: Add titles to %!demos.
author Rik <rik@octave.org>
date Wed, 22 Jan 2014 19:08:40 -0800
parents 15487cae60a3
children 7a1a71e3f328
files scripts/plot/draw/fill.m
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/draw/fill.m	Wed Jan 22 18:59:56 2014 -0800
+++ b/scripts/plot/draw/fill.m	Wed Jan 22 19:08:40 2014 -0800
@@ -171,6 +171,18 @@
 %! x2 = sin (t2) + 0.8;
 %! y2 = cos (t2);
 %! h = fill (x1,y1,'r', x2,y2,'g');
+%! title ({'fill() function'; 'cdata specified with string'});
+
+%!demo
+%! clf;
+%! t1 = (1/16:1/8:1) * 2*pi;
+%! t2 = ((1/16:1/8:1) + 1/32) * 2*pi;
+%! x1 = sin (t1) - 0.8;
+%! y1 = cos (t1);
+%! x2 = sin (t2) + 0.8;
+%! y2 = cos (t2);
+%! h = fill (x1,y1,1, x2,y2,2);
+%! title ({'fill() function'; 'cdata = row vector produces FaceColor = "flat"'});
 
 %!demo
 %! clf;
@@ -184,3 +196,5 @@
 %!      1 0.5];
 %! c = [1 2 3 4]';
 %! fill (x, y, c);
+%! title ({'fill() function'; 'cdata = column vector produces FaceColor = "interp"'});
+