Mercurial > octave-libgccjit
comparison scripts/plot/draw/plot3.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 | d63878346099 |
children |
comparison
equal
deleted
inserted
replaced
18921:d0d0858cfab1 | 18924:9a5e03801d23 |
---|---|
375 | 375 |
376 | 376 |
377 %!demo | 377 %!demo |
378 %! clf; | 378 %! clf; |
379 %! z = [0:0.05:5]; | 379 %! z = [0:0.05:5]; |
380 %! plot3 (cos (2*pi*z), sin (2*pi*z), z, ';helix;'); | 380 %! plot3 (cos (2*pi*z), sin (2*pi*z), z) |
381 %! legend ('helix'); | |
381 %! title ('plot3() of a helix'); | 382 %! title ('plot3() of a helix'); |
382 | 383 |
383 %!demo | 384 %!demo |
384 %! clf; | 385 %! clf; |
385 %! z = [0:0.05:5]; | 386 %! z = [0:0.05:5]; |
386 %! plot3 (z, exp (2i*pi*z), ';complex sinusoid;'); | 387 %! plot3 (z, exp (2i*pi*z)); |
388 %! legend ('complex sinusoid'); | |
387 %! title ('plot3() with complex input'); | 389 %! title ('plot3() with complex input'); |
388 | 390 |