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
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
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.
See ya!
Marcelo