Mercurial > hg > octave-nkf
changeset 19584: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 | 52ae096f038b |
children | 68116bea38ba |
files | scripts/plot/draw/private/__stem__.m |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/draw/private/__stem__.m +++ b/scripts/plot/draw/private/__stem__.m @@ -128,7 +128,13 @@ addlistener (hg, "markerfacecolor", @update_props); addlistener (hg, "markersize", @update_props); + if (islogical (x)) + x = double (x); + endif addproperty ("xdata", hg, "data", x(:, i)); + if (islogical (y)) + y = double (y); + endif addproperty ("ydata", hg, "data", y(:, i)); if (have_z) addproperty ("zdata", hg, "data", z(:, i));