changeset 15434:283cada76dd6

For the gnuplot backend, elevate all plot variables to double to prevent having data with fewer bits take precedence. Bug # 37420. * scripts/plot/private/__go_draw_axes__.m: Convert xdata, ydata, and zdata to double before they are combined and placed in the plot-stream.
author Ben Abbott <bpabbott@mac.com>
date Fri, 21 Sep 2012 20:46:50 -0400
parents 55ee1c97e10b
children e1f59fd57756
files scripts/plot/private/__go_draw_axes__.m
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/private/__go_draw_axes__.m
+++ b/scripts/plot/private/__go_draw_axes__.m
@@ -442,6 +442,16 @@
 
       obj = get (kids(end));
 
+      if (isfield (obj, "xdata"))
+        obj.xdata = double (obj.xdata);
+      end
+      if (isfield (obj, "ydata"))
+        obj.ydata = double (obj.ydata);
+      end
+      if (isfield (obj, "zdata"))
+        obj.zdata = double (obj.zdata);
+      end
+
       if (isfield (obj, "units"))
         units = obj.units;
         unwind_protect