Saving a Maple plot to postscript

From the On-line help (OLC answers):
In the TTY version, you'll need to set the plot to go to a postscript
file rather than the screen; you can then print the file from Athena
using lpr.  The command:
        > plotsetup(postscript);
will output any subsequent plot to a file named "postscript.out" in
your homedir.  Or you can specify a path and file name, for example:
        > plotsetup(postscript, plotoutput=`/tmp/`);
If you're doing multiple plots, you'll need to specify a different
file name before each one; otherwise the file will be overwritten with
each plot command.

To reset Maple to show plots on the screen again, type:

        > plotsetup(default);

You can also output plots to other formats such as jpeg and gif, by
specifying a "plot device" in plotsetup().  Type:

        > ?plot,device
For example:
plotsetup(postscript,plotoutput=`quad.eps`); plot ( x^2,x=-3..3); plotsetup(default); saves the graph to the file called quad.eps
The file type can be check by typing file quad.eps to see if Athena recognizes it as an EPS file.
---------- Forwarded message ----------
Date: Thu, 27 Jun 2002 12:59:33 -0400 (EDT)
From: Sanghamitra Sen 
Subject: making graphs

Hello all,

I've been getting a lot of questions about how to create graphs and
include them in Papers. There are two methods here, depending on where the
graph wascreated.

(i) Many of you will be working in labs that use Windows computers, and
you will make graphs in Excel. You can convert the file to eps within
Excel, scp (it's a secure ftp) it to your MIT account, and just stick
it in (for the most part). We'll help you with this when it come up.

(ii) Making graphs in Athena. The program you will use is called xess. It
looks like Excel and can do many of the same things. Play around with it
and get used to it. Do the following:

athena% add xess
athena% xess &

This will take a moment to load... type your data in. Highlight your data
with either [shift]-arrow keys or the mouse. Either press the graph button
for a line graph or a histogram, or open the Graph menu, select New Graph,
and pick a type. Play with the menus on the new window in which the graph
is opened (title the axes, etc.). When you are happy, click on the file
menu (this is all in the window with the graph), select Export. For File
Format, select BMP. In the selection window, give the file a name and put
it in the right directory (mine would say
/afs/ or you can delete
all the crap that's in the window and just type ~/MiniPaper/graph.bmp).
Click OK. Close xess by clicking File -> Exit in the spreadsheet window,
and click discard when it asks to save changes because the graph is
already saved. Now,

athena% add graphics
athena% xv graph.bmp

This opens a graphics viewer called xv. RIGHT CLICK anywhere on the new
window that just popped up. This opens xv controls. Click Save (right
side of window...) a new window will now open. For Format, change it to
"PB/PGM/PPM (raw)" Just look for the word raw. You'll notice that at the
bottom, it now says in the Save File box, "graph.ppm." That's good. Click
OK, then click Quit in the xv controls window.

Now you can proceed as normal.

athena% imconvert graph.ppm graph.eps

Now you have an eps file. Stick it in your latex file just as you would
any other image. It's really not all that hard, it just takes a lot of
words to describe it. Hope I don't scare people away.

Best of luck with your papers,
--Sasen/Sangha, your faithful TA