comparison scripts/plot/__plt2mm__.m @ 8257:79c874fe5100

More plot object updates
author David Bateman <dbateman@free.fr>
date Wed, 22 Oct 2008 04:30:17 +0100
parents bac1061a36bc
children 7d48766c21a5
comparison
equal deleted inserted replaced
8256:dba0037e6602 8257:79c874fe5100
53 color = options(i).color; 53 color = options(i).color;
54 if (isempty (color)) 54 if (isempty (color))
55 color = __next_line_color__ (); 55 color = __next_line_color__ ();
56 endif 56 endif
57 57
58 hg = hggroup (); 58 retval(i) = line (x(:,i), y(:,i), "keylabel", tkey, "color", color,
59 retval(i) = hg; 59 "linestyle", options(i).linestyle,
60 args = __add_datasource__ ("__plt2mm__", hg, {"x", "y", "z"}, 60 "marker", options(i).marker, properties{:});
61 properties{:});
62
63 h = line (x(:,i), y(:,i), "keylabel", tkey, "color", color,
64 "linestyle", options(i).linestyle,
65 "marker", options(i).marker, "parent", hg);
66
67 __add_line_series__ (h, hg);
68 if (! isempty( args))
69 set (hg, args {:});
70 endif
71 endfor 61 endfor
72 else 62 else
73 error ("__plt2mm__: arguments must be a matrices"); 63 error ("__plt2mm__: arguments must be a matrices");
74 endif 64 endif
75 else 65 else