Producing .ps files for latex documents
Mike Fitzpatrick wrote on Jun 25, 1998
> What's the best way of doing this? I've used :.snap psdump to produce > a postscript file of a plot, however it lacks any bounding box > information .... Use the 'eps' (portrait), 'epsl' (landscape), or 'epshalf' (half-size) device names instead of psdump. This produces a file 'sgiXXX.eps' in the current working directory. Cheers, -Mike
Andrew J. Walker wrote on Jun 26, 1998
What's the best way of doing this? I've used :.snap psdump to produce a postscript file of a plot, however it lacks any bounding box information and the normal postscript headers. Even after adding this I have found that the image is not formatted properly by \psfig in latex. Any ideas? Andrew Walker
Roberto Abraham at IoA, Cambridge wrote on Jun 26, 1998
I've tried :.snap eps on some IGI-generated plots, and the postscript looks good except for the loss of colour information. Is there a way to dump to a postscript file and retain colour? Cheers, Bob --------------------------------------------------------------------------- Roberto Abraham | E-mail: abraham@ast.cam.ac.uk Institute of Astronomy | Tel (direct) +44-(0)-1223-374970 Cambridge University | (secretary) +44-(0)-1223-337548 Madingley Road, Cambridge | FAX +44-(0)-1223-337523 CB3 OHA United Kingdom | Mobile 0467-371014 -------------------------------------------------------------------------- "What gets us into trouble is not what we don't know. It's what we know for sure that just ain't so." - Yogi Berra -------------------------------------------------------------------------- On Thu, 25 Jun 1998, Mike Fitzpatrick wrote: > > What's the best way of doing this? I've used :.snap psdump to produce > > a postscript file of a plot, however it lacks any bounding box > > information .... > > Use the 'eps' (portrait), 'epsl' (landscape), or 'epshalf' > (half-size) device names instead of psdump. This produces a file > 'sgiXXX.eps' in the current working directory. > > Cheers, > -Mike >
Mike Fitzpatrick wrote on Jun 26, 1998
> I've tried :.snap eps on some IGI-generated plots, and the postscript
> looks good except for the loss of colour information. Is there a way to
> dump to a postscript file and retain colour?
The only way to do this is using the PSIKERN Postscript graphics
kernel in STSDAS. V2.11 comes with psikern entries in the default
graphcap file including a 'psidump' device to write the output to
'psidmpXXX.ps' in the /tmp directory, but to make use of this you'll need
to have STSDAS installed on your system. The resulting EPS file retains
the axis/label/frame colors, but assumes you have a white paper page and
so the plot itself is drawn as a black line on a white background which
might not always be what you want.
You can change this by changing the :LG field of the 'psi_def'
graphcap entry to point to stsdas$lib/tvmark_cmap instead of the invxgterm
file as it does now, this file defines the same LUT used by TVMARK. If
you want to play with the colors yourself see the psikern system help by
using
cl> help stplot.psikern opt=sys
and see Examples 10-12 and the info on colors.
Note that the choice of colors in the plots is controlled by the
CL 'glbcolor' environment variable which defaults to a value of
"pt=3,fr=9,al=3,tl=6,ax=5,tk=5" where
pt - plot title fr - viewport frame
al - axis labels tl - tick label
ax - axis tk - tick marks
gr - grid between tick marks
The color index values refer to the XGterm color[0-9] resource values
which default to
0 - black 5 - cyan
1 - white 6 - yellow
2 - red 7 - purple
3 - green 8 - magenta
4 - blue 9 - darkslategray
This combination of glbcolor and the color[0-9] resources control the
colors you see on the screen, but keep in mind what comes out of the
PSIKERN is the color index specified in the :LG LUT file.
The reason you don't get color from most hardcopy devices is that
the graphics are processed by the SGI (Simple Graphics Interface) kernel
which turns all the graphics commands into simple move/draw instructions
and drops the color attributes, PSIKERN keeps the color information and
generates the postscript directly rather than relying on an SGI translator
the way the psdump/eps devices do.
-Mike
Last post on Jun 26, 1998