diff scripts/plot/area.m @ 17033:02679492b0c6

Add demo to area.m to demonstrate "ydata" updater. scripts/plot/area.m: Add demo which modifies the "ydata" hggroup property.
author Ben Abbott <bpabbott@mac.com>
date Mon, 22 Jul 2013 03:05:16 +0200
parents 4bbc4b703fe4
children cae21eadc27b
line wrap: on
line diff
--- a/scripts/plot/area.m	Mon Jul 22 02:51:41 2013 +0200
+++ b/scripts/plot/area.m	Mon Jul 22 03:05:16 2013 +0200
@@ -243,3 +243,8 @@
 %! set (h, 'basevalue', -1);
 %! title ({'Parabola y = x^2 -1';'BaseValue = -1'});
 
+%!demo
+%! x = 0:10;
+%! y = rand (size (x));
+%! h = area (x, y);
+%! set (h, 'ydata', sort (get (h, 'ydata')))