Mercurial > hg > octave-lyh
diff scripts/plot/plot3.m @ 8070:3b53b25e2550
Add data sources and line series
author | David Bateman <dbateman@free.fr> |
---|---|
date | Thu, 28 Aug 2008 12:23:54 -0400 |
parents | 5e90111a28b3 |
children | a028a5960e18 |
line wrap: on
line diff
--- a/scripts/plot/plot3.m +++ b/scripts/plot/plot3.m @@ -225,9 +225,15 @@ color = __next_line_color__ (); endif - tmp(++idx) = line (x(:), y(:), z(:), "keylabel", key, "color", color, - "linestyle", options.linestyle, - "marker", options.marker, properties{:}); + hg = hggroup (); + tmp(++idx) = hg; + properties = __add_datasource__ ("plot3", hg, {"x", "y", "z"}, properties{:}); + + hline = line (x(:), y(:), z(:), "keylabel", key, "color", color, + "linestyle", options.linestyle, + "marker", options.marker, "parent", hg, properties{:}); + + __add_line_series__ (h, hg); x = new; y_set = 0; @@ -289,9 +295,15 @@ color = __next_line_color__ (); endif - tmp(++idx) = line (x(:), y(:), z(:), "keylabel", key, "color", color, - "linestyle", options.linestyle, - "marker", options.marker, properties{:}); + hg = hggroup (); + tmp(++idx) = hg; + properties = __add_datasource__ ("plot3", hg, {"x", "y", "z"}, properties{:}); + + hline = line (x(:), y(:), z(:), "keylabel", key, "color", color, + "linestyle", options.linestyle, + "marker", options.marker, "parent", hg, properties{:}); + + __add_line_series__ (h, hg); endif set (gca (), "view", [-37.5, 30]);