PSINIT Name
PSINIT Purpose
Redirect plots and images to postscript printer.
Category
Calling Sequence
psinit [,num] Inputs
num = Postscript printer number. in
This may alternately be any unique string in the
printer description displayed using /LIST.
Keyword Parameters
Keywords
/FULL to use full page in portrait mode (def=top half).
/LANDSCAPE to do plot in landscape mode.
/COLOR means do color PostScript (def is B&W).
/AUTOCOLOR means automatically set color mode for a
color PS printer. Must have the word color in the
printer description line.
CFLAG=flag Returned color flag: 0=B&W, 1=Color mode.
FILE=f redirect plot to a specified file. The default
is idl.ps in the local directory.
DEFAULT=dn Set default printer number (def=0).
Stays in effect for IDL session.
MARGIN = [left, right, bottom, top] sets margins (inches).
May give as few values as needed. For left margin only
may just use MAR=xxx, otherwise give an array.
WINDOW = [xmin, xmx, ymin, ymx] sets window (inches).
Must give all 4 values.
/CENTIMETERS interpreted margin or window values in cm.
/DOUBLE to do plot in double thickness.
/VECTOR to use vector fonts instead of postscript fonts.
/ORIGIN plots a mark at the page origin.
/QUIET turns off psinit messages.
/LIST_PRINTERS lists available printers and their numbers.
COMMENT=txt comment to print with the time stamp.
CHARSIZE=csz Character size for comment (def=0.4).
Outputs
Common Blocks
ps_com,dname,xthick,ythick,pthick,pfont,defnum,num,comm
Notes
Notes
Default is portrait mode, top half of page.
Related routines:
psterm - terminate postscript output and make plots.
pspaper - plot norm. coord. system for curr. page setup.
Modification History
R. Sterner, 2 Aug, 1989.
R. Sterner, 22 May, 1990 --- converted to VMS.
R. Sterner, 12 Oct, 1990 --- WINDOW keyword.
R. Sterner, 20 Dec, 1990 --- added COMMENT keyword.
R. Sterner, 6 Dec, 1991 --- added FILE= keyword.
R. Sterner, 1995 May 3 --- Added /COLOR.
R. Sterner, 1995 May 4 --- Added /AUTOCOLOR.
R. Sterner, 1998 Jun 4 --- Added CHARSIZE.
Copyright (C) 1989, Johns Hopkins University/Applied Physics Laboratory
This software may be used, copied, or redistributed as long as it is not
sold and this copyright notice is reproduced on each copy made. This
routine is provided as is without any express or implied warranties
whatsoever. Other limitations apply as described in the file disclaimer.txt.