# HG changeset patch # User David Bateman # Date 1224151069 -3600 # Node ID 50fa927b4e490f23568e61eab14628a5783746fd # Parent 53202d60086f269711bf363827e0c0f0b59b170d Fix for images with new gnuplot/binary transfer code diff -r 53202d60086f -r 50fa927b4e49 scripts/ChangeLog --- a/scripts/ChangeLog Thu Oct 16 10:39:19 2008 +0100 +++ b/scripts/ChangeLog Thu Oct 16 10:57:49 2008 +0100 @@ -1,5 +1,9 @@ 2008-10-16 David Bateman + * plot/__go_draw_axes__.m: If current plot is an image, don't flag + the plot as binary, as the binary specification is already in the + "usingclause". + * plot/__go_draw_figure__.m: Always use multiplot and create an enclosing axis to ensure bounding box of postscript is correct. diff -r 53202d60086f -r 50fa927b4e49 scripts/plot/__go_draw_axes__.m --- a/scripts/plot/__go_draw_axes__.m Thu Oct 16 10:39:19 2008 +0100 +++ b/scripts/plot/__go_draw_axes__.m Thu Oct 16 10:57:49 2008 +0100 @@ -1142,11 +1142,21 @@ fprintf (plot_stream, "set view %.15g, %.15g;\n", rot_x, rot_z); endif endif - fprintf (plot_stream, "%s \"-\" binary format='%%float64' %s %s %s \\\n", plot_cmd, - usingclause{1}, titlespec{1}, withclause{1}); + if (is_image_data (1)) + fprintf (plot_stream, "%s \"-\" %s %s %s \\\n", plot_cmd, + usingclause{1}, titlespec{1}, withclause{1}); + else + fprintf (plot_stream, "%s \"-\" binary format='%%float64' %s %s %s \\\n", plot_cmd, + usingclause{1}, titlespec{1}, withclause{1}); + endif for i = 2:data_idx - fprintf (plot_stream, ", \"-\" binary format='%%float64' %s %s %s \\\n", - usingclause{i}, titlespec{i}, withclause{i}); + if (is_image_data (i)) + fprintf (plot_stream, "%s \"-\" %s %s %s \\\n", plot_cmd, + usingclause{i}, titlespec{i}, withclause{i}); + else + fprintf (plot_stream, ", \"-\" binary format='%%float64' %s %s %s \\\n", + usingclause{i}, titlespec{i}, withclause{i}); + endif endfor fputs (plot_stream, ";\n"); for i = 1:data_idx