Mercurial > hg > octave-lyh
diff scripts/plot/__plt2mv__.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 | a1dbe9d80eee |
children | a028a5960e18 |
line wrap: on
line diff
--- a/scripts/plot/__plt2mv__.m +++ b/scripts/plot/__plt2mv__.m @@ -70,9 +70,17 @@ if (isempty (color)) color = __next_line_color__ (); endif - retval(i) = line (x(:,i), y, "keylabel", tkey, "color", color, - "linestyle", options(i).linestyle, - "marker", options(i).marker, properties{:}); + + hg = hggroup (); + retval(i) = hg; + args = __add_datasource__ ("__plt2mv__", hg, {"x", "y", "z"}, + properties{:}); + + h = line (x(:,i), y, "keylabel", tkey, "color", color, + "linestyle", options(i).linestyle, + "marker", options(i).marker, "parent", hg, args{:}); + + __add_line_series__ (h, hg); endfor else error ("__plt2mv__: arguments must be a matrices");