kelle wrote:
> The way i handle this is by adding a 'ps' keyword to the plotting
> script. so:
>
> IDL> myproc
> outputs to the screen
>
> IDL> myproc,/ps
> outputs to hardcopy
>
> PRO myproc, ps=ps
>
> if keyword_set(ps) then begin
> displaycolors=!D.N_colors
> set_plot,'ps'
> device,filename='output.ps',/color,/cmyk,bits_per_pixel=8
> endif
>
> [plotting stuff]
>
> if keyword_set(ps) then begin
> device,/close
> set_plot,'x'
> device,decomposed=0
> endif
>
> END
>
> good luck!
> kelle
>
That is awesome! Thank you very much for your time and effort.


|