# HG changeset patch # User Ben Abbott # Date 1348274810 14400 # Node ID 283cada76dd6fc96541c209ecfa8b11466b8b892 # Parent 55ee1c97e10b6f88818c058b62d4703ea85eea29 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. diff --git a/scripts/plot/private/__go_draw_axes__.m b/scripts/plot/private/__go_draw_axes__.m --- 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