Mercurial > octave-dspies
comparison scripts/plot/util/copyobj.m @ 18924:9a5e03801d23
Update some plot %!demos so that they run under Matlab.
* datetick.m: Explicitly name 'x' axis in call to datetick.
* mesh.m: Use try/catch around block checking __graphics_toolkit__
which is an Octave-only figure property.
* patch.m: Call patch with X,Y,C rather than X,Y,PROP,VAL which is not
supported by Matlab.
* ezplot3: Use explicit call to legend, rather than ';legend;' in ezplot3
call which is Octave-only syntax.
* rose.m: Add a demo that Matlab can run. Matlab won't run the second demo
which uses Octave-only syntax.
* copyobj.m: Don't use errorbar plot style argument which is Octave-only
syntax.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 14 Jul 2014 21:40:28 -0700 |
parents | ee125c82e01e |
children |
comparison
equal
deleted
inserted
replaced
18921:d0d0858cfab1 | 18924:9a5e03801d23 |
---|---|
80 %! hold on; | 80 %! hold on; |
81 %! x = 1:10; | 81 %! x = 1:10; |
82 %! y = x.^2; | 82 %! y = x.^2; |
83 %! dy = 2 * (.2 * x); | 83 %! dy = 2 * (.2 * x); |
84 %! y2 = (x - 3).^2; | 84 %! y2 = (x - 3).^2; |
85 %! hg = errorbar (x, y, dy,'#~'); | 85 %! hg = errorbar (x, y, dy); |
86 %! set (hg, 'marker', '^', 'markerfacecolor', rand (1,3)); | 86 %! set (hg, 'marker', '^', 'markerfacecolor', rand (1,3)); |
87 %! plot (x, y2, 'ok-'); | 87 %! plot (x, y2, 'ok-'); |
88 %! legend ('errorbar', 'line'); | 88 %! legend ('errorbar', 'line'); |
89 %! drawnow (); | 89 %! drawnow (); |
90 %! pos = get (hobj, 'position'); | 90 %! pos = get (hobj, 'position'); |