# HG changeset patch # User Markus Bergholz # Date 1412877669 -7200 # Node ID aea099cd1ee751206b932c4320686ba3aec9641f # Parent 52ae096f038b5002dc59722667b5cb1b0fe9532c Allow stem to plot logical values (bug #43391). * __stem__.m: Convert logical input to double before calling addproperty. diff -r 52ae096f038b -r aea099cd1ee7 scripts/plot/draw/private/__stem__.m --- a/scripts/plot/draw/private/__stem__.m Sat Dec 06 13:21:52 2014 -0800 +++ b/scripts/plot/draw/private/__stem__.m Thu Oct 09 20:01:09 2014 +0200 @@ -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));