Mercurial > octave-nkf
diff scripts/plot/__plt2mm__.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/__plt2mm__.m Thu Aug 28 10:20:43 2008 -0400 +++ b/scripts/plot/__plt2mm__.m Thu Aug 28 12:23:54 2008 -0400 @@ -54,9 +54,17 @@ if (isempty (color)) color = __next_line_color__ (); endif - retval(i) = line (x(:,i), y(:,i), "keylabel", tkey, "color", color, - "linestyle", options(i).linestyle, - "marker", options(i).marker, properties{:}); + + hg = hggroup (); + retval(i) = hg; + args = __add_datasource__ ("__plt2mm__", hg, {"x", "y", "z"}, + properties{:}); + + h = line (x(:,i), 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 ("__plt2mm__: arguments must be a matrices");