Mercurial > hg > octave-nkf
diff scripts/plot/plot3.m @ 8257:79c874fe5100
More plot object updates
author | David Bateman <dbateman@free.fr> |
---|---|
date | Wed, 22 Oct 2008 04:30:17 +0100 |
parents | 4665276ff7f6 |
children | 6f2d95255911 |
line wrap: on
line diff
--- a/scripts/plot/plot3.m +++ b/scripts/plot/plot3.m @@ -182,20 +182,10 @@ color = __next_line_color__ (); endif - hg = hggroup (); - tmp(++idx) = hg; - properties = __add_datasource__ ("plot3", hg, {"x", "y", "z"}, properties{:}); - - hline = line (x(:, i), y(:, i), z(:, i), "keylabel", key, - "color", color, - "linestyle", options.linestyle, - "marker", options.marker, "parent", hg); - - __add_line_series__ (hline, hg); - - if (! isempty (properties)) - set (hg, properties{:}); - endif + tmp(++idx) = line (x(:, i), y(:, i), z(:, i), "keylabel", key, + "color", color, + "linestyle", options.linestyle, + "marker", options.marker, properties{:}); endfor x_set = 0; @@ -241,20 +231,10 @@ color = __next_line_color__ (); endif - hg = hggroup (); - tmp(++idx) = hg; - properties = __add_datasource__ ("plot3", hg, {"x", "y", "z"}, properties{:}); - - hline = line (x(:, i), y(:, i), z(:, i), "keylabel", key, - "color", color, - "linestyle", options.linestyle, - "marker", options.marker, "parent", hg); - - __add_line_series__ (hline, hg); - - if (! isempty (properties)) - set (hg, properties{:}); - endif + tmp(++idx) = line (x(:, i), y(:, i), z(:, i), "keylabel", key, + "color", color, + "linestyle", options.linestyle, + "marker", options.marker, properties{:}); endfor x = new; @@ -319,20 +299,10 @@ color = __next_line_color__ (); endif - hg = hggroup (); - tmp(++idx) = hg; - properties = __add_datasource__ ("plot3", hg, {"x", "y", "z"}, properties{:}); - - hline = line (x(:, i), y(:, i), z(:, i), "keylabel", key, - "color", color, - "linestyle", options.linestyle, - "marker", options.marker, "parent", hg); - - __add_line_series__ (hline, hg); - - if (! isempty (properties)) - set (hg, properties{:}); - endif + tmp(++idx) = line (x(:, i), y(:, i), z(:, i), "keylabel", key, + "color", color, + "linestyle", options.linestyle, + "marker", options.marker, properties{:}); endfor endif