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