changeset 19620:40b0f41a7100

Print black&white when using -dps device with gnuplot (bug #43975). * __go_draw_axes__.m: Check the value of mono before adding cmap to plot stream.
author Rik <rik@octave.org>
date Sun, 18 Jan 2015 10:38:11 -0800
parents e33427a854ec
children 6b09dd576521
files scripts/plot/util/private/__go_draw_axes__.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/private/__go_draw_axes__.m	Thu Jan 15 22:45:11 2015 -0500
+++ b/scripts/plot/util/private/__go_draw_axes__.m	Sun Jan 18 10:38:11 2015 -0800
@@ -1631,7 +1631,7 @@
 
   cmap = [cmap; addedcmap];
   cmap_sz = cmap_sz + rows (addedcmap);
-  if (length (cmap) > 0)
+  if (mono == false && length (cmap) > 0)
     fprintf (plot_stream,
              "set palette positive color model RGB maxcolors %i;\n",
              cmap_sz);