comparison 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
comparison
equal deleted inserted replaced
17032:53d6166f7867 17033:02679492b0c6
241 %! subplot (1, 2, 2) 241 %! subplot (1, 2, 2)
242 %! h = area (x, y); 242 %! h = area (x, y);
243 %! set (h, 'basevalue', -1); 243 %! set (h, 'basevalue', -1);
244 %! title ({'Parabola y = x^2 -1';'BaseValue = -1'}); 244 %! title ({'Parabola y = x^2 -1';'BaseValue = -1'});
245 245
246 %!demo
247 %! x = 0:10;
248 %! y = rand (size (x));
249 %! h = area (x, y);
250 %! set (h, 'ydata', sort (get (h, 'ydata')))