comparison scripts/plot/draw/private/__stem__.m @ 19423:aea099cd1ee7

Allow stem to plot logical values (bug #43391). * __stem__.m: Convert logical input to double before calling addproperty.
author Markus Bergholz <markuman+octave@gmail.com>
date Thu, 09 Oct 2014 20:01:09 +0200
parents 2d0afa04d103
children 0e1f5a750d00
comparison
equal deleted inserted replaced
19422:52ae096f038b 19423:aea099cd1ee7
126 addlistener (hg, "marker", @update_props); 126 addlistener (hg, "marker", @update_props);
127 addlistener (hg, "markeredgecolor", @update_props); 127 addlistener (hg, "markeredgecolor", @update_props);
128 addlistener (hg, "markerfacecolor", @update_props); 128 addlistener (hg, "markerfacecolor", @update_props);
129 addlistener (hg, "markersize", @update_props); 129 addlistener (hg, "markersize", @update_props);
130 130
131 if (islogical (x))
132 x = double (x);
133 endif
131 addproperty ("xdata", hg, "data", x(:, i)); 134 addproperty ("xdata", hg, "data", x(:, i));
135 if (islogical (y))
136 y = double (y);
137 endif
132 addproperty ("ydata", hg, "data", y(:, i)); 138 addproperty ("ydata", hg, "data", y(:, i));
133 if (have_z) 139 if (have_z)
134 addproperty ("zdata", hg, "data", z(:, i)); 140 addproperty ("zdata", hg, "data", z(:, i));
135 else 141 else
136 addproperty ("zdata", hg, "data", []); 142 addproperty ("zdata", hg, "data", []);