Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using gnuplot on a remote machine?

642 views
Skip to first unread message

9lives.9lives

unread,
Aug 9, 2007, 6:34:28 PM8/9/07
to
Hello! I have a hopefully very easy question. I would like to create a
bunch of plots at home (where I can't actually display the plot) with
gnuplot.

Is there a script that would take in data like:

1 2
2 4
3 15
4 30
5 60

or something, and output it directly to an .eps or .jpq or postscript
file? My problem is that I can't run the plot command because I don't
have any graphics displays at home.

Hope this is easy!

Best,
Susan

Ethan Merritt

unread,
Aug 9, 2007, 7:08:40 PM8/9/07
to
In article <1186698868.7...@d30g2000prg.googlegroups.com>,

9lives.9lives <baji...@hotmail.com> wrote:
>
>or something, and output it directly to an .eps or .jpq or postscript
>file? My problem is that I can't run the plot command because I don't
>have any graphics displays at home.

The plot command will plot to whatever the current terminal type is.
If the current terminal type is set to "x11" or "win" or "aqua" or
"wxt" ... then the plot will appear on your screen. If it is
set to almost any other terminal type then the output will go to a
file.

You can change the terminal type at any time by saying, for example,
set term png
set output 'pic1.png'
plot ... something

set term postscript eps
set output 'pic2.eps'
plot ... something else

Gnuplot can do jpeg files, but this is generally a bad idea
because jpeg is a lossy format and the thin lines of a plot tend to
get blurred or washed out. The plot will look much cleaner if you
choose png instead.
--
Ethan A Merritt

Hans-Bernhard Bröker

unread,
Aug 10, 2007, 12:00:03 PM8/10/07
to
9lives.9lives wrote:
> Hello! I have a hopefully very easy question. I would like to create a
> bunch of plots at home (where I can't actually display the plot)

I find that hard to believe. I'm not aware of any type of machine you
might have at home that doesn't support any of the interactive terminal
drivers. And even if that were true, there's certainly a way to display
graphics in, say, PNG or GIF format, on your machine.

> or something, and output it directly to an .eps or .jpq or postscript
> file? My problem is that I can't run the plot command because I don't
> have any graphics displays at home.

So what *do* you have? A VT100 terminal? Guess what: we have terminal
drivers even for that. See "help terminal dumb" and "help vttek".

Anyway, you don't need a graphic display to use the "plot" command. See
"help postscript" or "help png" in your gnuplot.

Nosophorus

unread,
Aug 20, 2007, 2:51:17 AM8/20/07
to
Wow!!! 9lives.9lives seems *really* Old School! :)

See ya!

Marcelo

0 new messages