Mercurial > hg > octave-nkf
diff scripts/plot/plot3.m @ 6264:cc2bee854d23
[project @ 2007-02-01 10:00:05 by jwe]
author | jwe |
---|---|
date | Thu, 01 Feb 2007 10:00:05 +0000 |
parents | 44c91c5dfe1d |
children | 0078497b3b0b |
line wrap: on
line diff
--- a/scripts/plot/plot3.m +++ b/scripts/plot/plot3.m @@ -195,7 +195,7 @@ z_set = 1; endif endif - [fmt, key] = __pltopt__ ("plot3", new); + options = __pltopt__ ("plot3", new); if (isvector (x) && isvector (y)) if (isvector (z)) @@ -213,10 +213,15 @@ error ("plot3: x, y, and z must have the same shape"); endif - line (x(:), y(:), z(:)); + key = options.key; + if (! isempty (key)) + set (gca (), "key", "on"); + endif - ## FIXME -- what about fmt and key? - ## fmt{1}, key{1}); + line (x(:), y(:), z(:), "keylabel", key, + "color", options.color, + "linestyle", options.linestyle, + "marker", options.marker); x_set = 0; y_set = 0;