comparison scripts/plot/private/__go_draw_axes__.m @ 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 aaf938d17e0c
children
comparison
equal deleted inserted replaced
15433:55ee1c97e10b 15434:283cada76dd6
439 ximg_data_idx = 0; 439 ximg_data_idx = 0;
440 440
441 while (! isempty (kids)) 441 while (! isempty (kids))
442 442
443 obj = get (kids(end)); 443 obj = get (kids(end));
444
445 if (isfield (obj, "xdata"))
446 obj.xdata = double (obj.xdata);
447 end
448 if (isfield (obj, "ydata"))
449 obj.ydata = double (obj.ydata);
450 end
451 if (isfield (obj, "zdata"))
452 obj.zdata = double (obj.zdata);
453 end
444 454
445 if (isfield (obj, "units")) 455 if (isfield (obj, "units"))
446 units = obj.units; 456 units = obj.units;
447 unwind_protect 457 unwind_protect
448 set (kids(end), "units", "data"); 458 set (kids(end), "units", "data");