pro OPENPS, file, col=col, por=por, land=land, eps=eps, _extra=_extra ;+ ; NAME: ; OPENPS ; ; PURPOSE: ; Open a PS file with "suitable" plot parameters ; ; KEYWORDS: ; _EXTRA Extra keywords (passed to DEVICE) ; ; EXAMPLE: ; To be used together with closeps, e.g. ; ; openps ; ; ; Plot Commands... ; ; closeps ; ; MODIFICATION HISTORY: ; 11 May 2006 Adapted from Seb Oliver's SETPS & SET_PLOT_PS (Mattia Vaccari) ; ; 27 Sep 2006 _EXTRA keyword added ;- on_error,2 if not keyword_set(file) then file='idl.ps' ; Plot Orientation (Portrait vs. Landscape) ; Portrait is default and overrides Landscape if both are set through keywords portrait=1 & landscape=0 if keyword_set(por) then portrait=1 else if keyword_set(land) then begin portrait=0 & landscape=1 & endif color=0 & if keyword_set(col) then color=1 encaps=1 & if keyword_set(eps) then encaps=1 set_plot,'PS' device,filename=file,bit=8,color=color,portrait=portrait,landscape=landscape,encaps=encaps,_extra=_extra !p.thick=5 !x.thick=5 !y.thick=5 !p.charsize=1.0 !p.charthick=3 ;!x.charsize=1.5 ;!y.charsize=1.5 end