Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > IDL > Re: Running a p...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 9 of 9 Topic 165 of 235
Post > Topic >>

Re: Running a proc from inside a script!

by pmw <blah@[EMAIL PROTECTED] > Dec 12, 2006 at 09:55 AM

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.
 




 9 Posts in Topic:
Running a proc from inside a proc
pmw <blah@[EMAIL PROTE  2006-12-08 15:20:30 
Re: Running a proc from inside a proc
"Toylas" <tu  2006-12-10 19:41:50 
Re: Running a proc from inside a script!
pmw <blah@[EMAIL PROTE  2006-12-11 10:48:21 
Re: Running a proc from inside a proc
"Jean H." <j  2006-12-11 10:14:39 
Re: Running a proc from inside a proc
pmw <blah@[EMAIL PROTE  2006-12-11 10:49:54 
Re: Running a proc from inside a proc
"Jean H." <j  2006-12-12 10:54:55 
Re: Running a proc from inside a proc
pmw <blah@[EMAIL PROTE  2006-12-12 11:43:27 
Re: Running a proc from inside a script!
"kelle" <kel  2006-12-12 05:05:09 
Re: Running a proc from inside a script!
pmw <blah@[EMAIL PROTE  2006-12-12 09:55:09 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 20:54:36 CDT 2008.