PDA

View Full Version : Gnuplot on terminal osx 10.4.9 (intel)




ScKaSx
Dec 10, 2007, 07:20 PM
Hi All,

I am trying to use gnuplot from terminal and get the following DISPLAY error when I run a command:

gnuplot: unable to open display ':0.0'
gnuplot: X11 aborted

I can run it from x11 but prefer to run it from terminal. Plus, I could run it from terminal fine with my older powerbook osx 13.9. Any suggestions would be appreciated.

Cheers,
ScKaSx



neoserver
Dec 10, 2007, 08:38 PM
Given the error message, it appears as if gnuplot requires the presence of X11. So I think you'll have to settle for running it within X11 unless fink has a version of gnuplot that doesn't use X11?

ChrisA
Dec 10, 2007, 09:15 PM
I can run it from x11 but prefer to run it from terminal.
ScKaSx

You need to set the "terminal type". You can type "set terminal" at the gnuplot prompt to get alist of the types built into your copy of gnuplot. My copy here has maybe 30 types supported only four of them require X11.

ScKaSx
Dec 11, 2007, 02:05 AM
Thanks guys, I understand how to run it now. I just need to type "set terminal aqua" on the commandline at the beginning of each session.

Thanks.

Cheers,
ScKaSx

AlmostThere
Dec 11, 2007, 08:29 AM
Put that in ~/.gnuplot