changeset 14495:319660795df1

Fix gnuplot error when color values are within eps of each other (bug #35761). * plot/private/__go_draw_axes__.m: Use %.15e for setting cbrange in gnuplot.
author Marco Caliari <marco.caliari@univr.it>
date Sun, 25 Mar 2012 13:53:39 -0700
parents 351ca094580b
children bd592d5482c0
files scripts/plot/private/__go_draw_axes__.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/private/__go_draw_axes__.m	Sat Mar 24 20:32:24 2012 -0400
+++ b/scripts/plot/private/__go_draw_axes__.m	Sun Mar 25 13:53:39 2012 -0700
@@ -1434,10 +1434,10 @@
               data{i}(end,:) = clim(2) * (data{i}(end, :) - 0.5) / cmap_sz;
              endif
           endfor
-          fprintf (plot_stream, "set cbrange [%g:%g];\n", clim(1), clim(2) *
+          fprintf (plot_stream, "set cbrange [%.15e:%.15e];\n", clim(1), clim(2) *
                    (cmap_sz + rows(addedcmap)) / cmap_sz);
         else
-          fprintf (plot_stream, "set cbrange [%g:%g];\n", clim);
+          fprintf (plot_stream, "set cbrange [%.15e:%.15e];\n", clim);
         endif
       else
         fprintf (plot_stream, "set cbrange [1:%d];\n", cmap_sz +