|
From: Ethan A M. <merritt@u.washington.edu> - 2007-03-09 03:07:09
|
On Thursday 08 March 2007 18:27, Allin Cottrell wrote:
>
> echo "set term png" | `which gnuplot` 2>/dev/null && \
> gnuplot_png=yes
>
> This has worked with versions of gnuplot up to 4.0. I have just
> updated to version 4.2.0 and it now fails, if the command is not
> run with the X11 display set.
I can't reproduce this.
bash-3.1$ unset DISPLAY
bash-3.1$ echo "set term png" | gnuplot_4.2 2>/dev/null && png42=yes
bash-3.1$ echo $png42
yes
> With previous gnuplot versions it was not necessary that the
> DISPLAY variable be set to something valid for X11.
Let's try to pin down exactly what causes the failure.
> Can anyone suggest a workaround for this? Thanks.
Yes. It would be sufficient to pass in GNUTERM=png
(or GNUTERM=<anything but x11> for that matter).
bash-3.1$ echo "show term" | GNUTERM=dumb gnuplot_4.2
terminal type is dumb feed 79 24
--
Ethan A Merritt
|