octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #46886] linetype not respected across Gnuplot


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #46886] linetype not respected across Gnuplot terminals
Date: Wed, 09 Mar 2016 12:58:56 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/601.4.4 (KHTML, like Gecko) Version/9.0.3 Safari/601.4.4

Follow-up Comment #9, bug #46886 (project octave):

Rik,

Have you tried different terminal types with 2D plots? Below is a script that
works for me. You'll need to delete "aqua".


1;

function do_plot (term)
  if (nargin < 1)
    term = "aqua";
  endif
  setenv ("GNUTERM", term);
  persistent x y
  if (isempty (x))
    x = 1:4;
    y = rand (4);
  endif
  h = plot (x, y(1,:), "-", ...
            x, y(2,:), "--", ...
            x, y(3,:), "-.", ...
            x, y(4,:), ":");
  set (h, "linewidth", 2);
  drawnow ()
end

graphics_toolkit gnuplot

figure (1)
do_plot aqua
figure (2)
do_plot x11
figure (3)
do_plot qt
figure (4)
do_plot wxt


I no longer have a gnuplot 4.6 to run. For gnuplot 5, this produces different
linestyles for the terminals. However, I have a patch that fixes that (it is
attached).

Sorry for cross-posting on the bug reports, but I posted to the wrong one
first.

(file #36580)
    _______________________________________________________

Additional Item Attachment:

File name: changeset.patch                Size:1 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46886>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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