|
From: Nate G. <gel...@tr...> - 2003-10-29 01:23:07
|
As usual, after asking the question, I find an answer.
Editing /usr/local/lib/python2.2/site-packages/Gnuplot/gp_unix.py
and changing default_term =3D 'x11' to 'xlib' solved this problem.
Should that be the default?
-----Original Message-----
From: Nate Gelbard=20
Sent: Tuesday, October 28, 2003 4:56 PM
To: gnu...@li...
Subject: [Gnuplot-py-users] set terminal x11
Hello,
I'm back on the graphing wagon, again.
RedHat 7.3, python 2.2.3, gnuplot-3.7.3, gnuplot-py 1.7.
g =3D Gnuplot.Gnuplot(debug=3D1)
g('set data style lines')
g('set terminal png color')
g('set output \"%s\"' % outfile)
g.title("Time vs Memory")
g.xlabel("Time \(5min interval\)")
g.ylabel("KBytes")
[gelbardn@webster agent]$ ./Graph.py=20
gnuplot> set terminal x11
gnuplot> set data style lines
gnuplot> set terminal png color
gnuplot> set output "test.png"
gnuplot> set title "Time vs Memory"
gnuplot> set xlabel "Time \(5min interval\)"
gnuplot> set ylabel "KBytes"
gnuplot-py is calling 'set terminal x11' which is failing.
I think it should be calling 'set terminal xlib'
Did I setup gnuplot 3.7.3 incorrectly or should gnuplot-py be calling it
with xlib instead of x11?
I only configured gnuplot --with-png.
[gelbardn@webster agent]$ ./Graph.py=20
gnuplot> set terminal x11
gnuplot> set data style lines
gnuplot> set terminal png color
gnuplot> set output "test.png"
gnuplot> set title "Time vs Memory"
gnuplot> set xlabel "Time \(5min interval\)"
gnuplot> set ylabel "KBytes"
gnuplot> set terminal x11
^
line 0: unknown or ambiguous terminal type; type just 'set
terminal' for a list
Thanks,
--( Nate Gelbard, QA Engineer =20
--( Tripwire, Inc., The Integrity Assurance Company
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does
SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Gnuplot-py-users mailing list Gnu...@li...
https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users
|