[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #46886] linetype not respected across gnuplot
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #46886] linetype not respected across gnuplot terminals |
Date: |
Wed, 09 Mar 2016 23:41:16 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Update of bug #46886 (project octave):
Summary: linetype not respected across Gnuplot terminals =>
linetype not respected across gnuplot terminals
_______________________________________________________
Follow-up Comment #10:
Ben, overall the changeset looks good. Here is my modified script that I used
to test your patch:
1; # make this a script, not a function m-file
function do_plot (term)
persistent x y
if (isempty (x))
rand ("state", 2);
x = 1:4;
y = rand (4);
endif
setenv ("GNUTERM", term);
h = plot (x, y(1,:), "-",
x, y(2,:), "--",
x, y(3,:), "-.",
x, y(4,:), ":");
set (h, "linewidth", 2);
drawnow ();
title (term);
endfunction
graphics_toolkit gnuplot
if (ismac)
figure (1);
do_plot aqua
endif
figure (2);
do_plot x11
figure (3);
do_plot qt
figure (4);
do_plot wxt
I added a title() call so that I could quickly see which terminal was
producing which set of lines. Under gnuplot 5, they all seem to look more or
less the same. Under gnuplot 4.6.6 all of the lines are solid. This is
unrelated to your patch. Apparently Octave has lost the ability to plot
different line types when the version is less than 5.
I would say go ahead and commit it.
Also, I tried running some of the graphic demos under gnuplot and I'm getting
different results than qt or fltk. A while back we had a test script that ran
all the demos under gnuplot, fltk, qt, and matlab. It seems like it is time
to dust that off and run it again.
The first thing I see is that 'shading interp' seems to be broken on gnuplot.
Also, when I run 'demo ("contour3", 1)' I get this
error: 'dataidx' undefined near line 1228 column 49
error: called from
__gnuplot_draw_axes__ at line 1228 column 35
__gnuplot_draw_figure__ at line 172 column 17
__gnuplot_drawnow__ at line 86 column 5
All of this could go under a new bug report if you like.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46886>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/