#711139 gnuplot-qt: the grid doesn't work with the 'qt' terminal in -persist state

Package:
gnuplot-qt
Source:
gnuplot
Description:
Command-line driven interactive plotting program. QT-package
Submitter:
Vincent Lefevre
Date:
2015-11-04 02:00:36 UTC
Severity:
minor
#711139#5
Date:
2013-06-05 00:33:46 UTC
From:
To:
With the 'qt' terminal, clicking on the "grid" button doesn't have any
effect. No such problem with the 'wxt' terminal (default).

To reproduce the problem:

$ GNUTERM=qt gnuplot -persist <<EOF
plot '-' using 1:2 t '' with line
0 0
10 10
e
EOF

#711139#10
Date:
2013-06-05 06:03:59 UTC
From:
To:
Hi,

you help will be much more effective, if you report all of this bugs directly to
upstream instead of Debian BTS. I am sure, all of them are not Debian-specific,

If you do really want to see them fixed, please, do it.

Thank you,

Anton

2013/6/5 Vincent Lefevre <vincent@vinc17.net>:

#711139#15
Date:
2013-06-05 06:07:10 UTC
From:
To:
severity 711139 minor
severity 711141 minor
severity 711142 minor
thanks

#711139#22
Date:
2014-06-05 11:27:26 UTC
From:
To:
This was in my TODO list, but I didn't have the time. I'll do that.
In the mean time, since wxt is no longer supported, I'm closing
bug 711142.

#711139#31
Date:
2014-06-05 15:58:20 UTC
From:
To:
Upstream response:

Can't reproduce - works fine here both for version 4.6.3 which you
mention in your report and for current 4.6.5.

Perhaps your background color is not distinguishable from the
grid line color?  Try changes the grid color.

#711139#36
Date:
2014-06-10 07:17:37 UTC
From:
To:
The grid color is not configurable (at least via the UI). I can change
the background color, e.g. from white to black, but the grid is still
invisible when I click on the "Show grid" button.

#711139#41
Date:
2014-06-10 07:36:34 UTC
From:
To:
I recall the testcase:

$ GNUTERM=qt gnuplot -persist <<EOF
plot '-' using 1:2 t '' with line
0 0
10 10
e
EOF

However if instead of this testcase, I just start

  GNUTERM=qt gnuplot -persist

then enter the commands manually:

gnuplot> plot '-' using 1:2 t '' with line
input data ('e' ends) > 0 0
input data ('e' ends) > 10 10
input data ('e' ends) > e

then the grid button works. Then if I type "quit" to get the prompt
back, the window persists as required, but grid button no longer
works.

Note that the 'wxt' terminal doesn't have such a problem.

#711139#48
Date:
2014-06-11 02:04:42 UTC
From:
To:
You are trying to use "persist" for something beyond what
it was intended for.

Yeah - if you type "quit" the program quits and then you
can't make any new plots.  Since zooming or grid generation
or various other things require recalculating the plot,
it won't work once you quit.

Now it is true that some terminal types are smart enough
to toggle the grid on/off even in persistent mode after
the main program has exiting.   It would be possible to
make qt do that also, but only if the original plot already
contained a grid.  And that is only possible because it
isn't really necessary to regenerate the whole plot just
to make the grid lines [in]visible.  It doesn't change
the basic limitation.    If toggling the grid is important
to you by itself, could you please file a feature request
for uniform support to toggle it off in terminals that
support a persistent mode?   It would be easy in qt, but
I'd have to think about the other terminals.

	Ethan (sfeam) - upstream devel team

#711139#53
Date:
2014-06-11 12:21:11 UTC
From:
To:
I'm merging these two bugs because they basically cover the same issue.
However each covers 3 different issues: a documentation one, an UI one,
and a feature one (see below).

I was mainly surprised that qt didn't behave like wxt. But this is
partly due to incomplete documentation (partly solved, but the man
page should be updated too) and poor UI: when a feature provided by
a button is not available, the button is normally greyed out; this is
not the case here. Alternatively, an error message could be displayed
when a non-working button ("show grid" or zoom) is clicked.

Well, toggling the grid and zooming may be important in some cases.
When gnuplot is used in a script, there should be a way to use these
features (I'm not saying to use "persist", it could be something
like "pause mouse keypress" + some other code but it seems to badly
interact with the buttons) and make the gnuplot processes terminate
when the terminal is closed by the user ('q', 'Ctrl-q', via the
window manager, or whatever). See

https://sourceforge.net/p/gnuplot/bugs/1418/#645d

and my reply.