octave-maintainers
[Top][All Lists]
Advanced

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

Re: '__gnuplot_has_feature__' undefined


From: Daniel J Sebald
Subject: Re: '__gnuplot_has_feature__' undefined
Date: Fri, 2 Sep 2016 15:10:30 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2

On 09/02/2016 12:39 PM, Rik wrote:
On 09/02/2016 10:32 AM, Daniel J Sebald wrote:
On 09/02/2016 12:20 PM, Mike Miller wrote:
On Fri, Sep 02, 2016 at 11:57:08 -0500, Daniel J Sebald wrote:
My thinking is "yes" and "no".  Yes on the bigger items, such as things
that
might cause a v4.0 series gnuplot to fail to interpret properly and
therefore not create a plot.  No on fairly special cases that might be
outside the ordinary type of plot.

By disallowing older versions of gnuplot, that's ruling out users who are
looking to put in some simple data and create a simple plot (say a line
plot), e.g., the non-power-user class.  Say, for example students
creating a
lab report.

That is a reasonable position to take, but the logic must be put into
the scripts to support that. It is broken as it is right now and not
ready for release IMHO.

There is already a set of checks and functions in place for whether
gnuplot supports certain features. That needs to be updated to work with
the current baseline. There are many places now where Octave sends a
command to gnuplot, and gnuplot responds with an arcane (to the Octave
user) error message about unsupported syntax or options.

The main one has revolved around gnuplot's "line style" vs. "line type",
the similarity of syntax leading to confusion.  I've tried fixing a few
of those.  (I know the waterfall demo still has an issue with some dotted
lines that should be solid.)

Even a simple plot fails to execute correctly with 4.6.6

plot (1:10, '--')

It doesn't throw an error, but the line is always solid regardless of the
linestyle set in Octave.

--Rik

What terminal within gnuplot are you using?  wxt?  Qt?  x11?

I've pulled gnuplot 4.6.6 from that project's version control. I had a bit of problem compiling and had to hack the "prepare" file. Got it to compile. But I have no gnuplot Qt terminal (probably because I've switched to Qt 5.0 on my system). When I try the "wxt" terminal, I see some really bad looking errors. But, if I switch to GNUTERM='x11' terminal in may .bashrc file, and run

plot (1:10, '--')
print -dpng 'test.png'

I see dotted lines for both the X11 plot and the PNG file.

The only recollection that comes to mind is that the X11 terminal (if that is what you happen to be using) needs some special X11 file to properly define line patterns. Anyway, do the above commands produce a PNG file that has dashed lines on your system?

Dan



reply via email to

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