changeset 17035: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 53d6166f7867
children 8d84dc5f5b5d
files scripts/plot/area.m
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/area.m
+++ b/scripts/plot/area.m
@@ -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')))