On Thu, 10 Apr 2008, Hélio Guilherme wrote:
I upgraded my gnuplot to it's latest version, 4.2, and then
gretl's graphics got broken, like saving to a PNG. So here is a
fix for it.
New gnuplot 4.2 syntax made a change from "set term" to "set
terminal".
Thanks, Helio, I don't think that is the issue. The full command
has always been "set terminal" but gnuplot accepts abbreviations
provided they are unique, and "term" is a unique abbreviation for
"terminal".
On my system, gnuplot 4.2 and 4.3 (CVS) both accept "set term".
To double-check, I just downloaded and built the latest official
release, version 4.2.3: "set term" works fine.
What happens if you open an interactive session with your copy of
gnuplot 4.2 and type "set term png"?
The fix modifies files in gui2 and also the configure script, to
provide gnuplot version detection, and PNG support (it advises
users to install PNG support in gnuplot).
Please note that "configure" is a generated file, not part of the
true source tree. The file to modify is configure.in -- but in
fact we do check for gnuplot's PNG support as part of gretl's
configuration.
Allin.