[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #43975] gnuplot eps output is in color

From: Rik
Subject: [Octave-bug-tracker] [bug #43975] gnuplot eps output is in color
Date: Sat, 17 Jan 2015 22:14:24 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0

Follow-up Comment #12, bug #43975 (project octave):

I commented out the code which does "set palette" in __go_draw_axes__.m and
added a line to print out the value of the mono variable.

  fprintf (stderr, "mono is: %d\n", mono);
  if (length (cmap) > 0)
    fprintf (plot_stream,
             "set palette positive color model RGB maxcolors %i;\n",
    fprintf (plot_stream,
             "set palette file \"-\" binary record=%d using 1:2:3:4;\n",
    fwrite (plot_stream, [1:cmap_sz; cmap.'], "float32");
    fwrite (plot_stream, "\n");

The results from running the command below are:

octave:1> graphics_toolkit gnuplot
octave:2> surf (peaks)
mono is: 0
octave:3> print -dps a.ps
mono is: 1
mono is: 0
octave:4> drawnow ("postscript", "a2.ps", true, "a2.gp");
mono is: 1
mono is: 1

Attached are the actual postscript and .gp files.

(file #32859)

Additional Item Attachment:

File name: drawnow2.tgz                   Size:342 KB


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]