Sorry, I’ve forgotten
Guest wrote on Oct 26, 2005
On Wed, 26 Oct 2005, Buell Jannuzi wrote:
> Warning, IRAF question... when setting stdgraph to psdump,
> how can one adjust the density, or resolution, of the image that is saved?
You can't do it from the command line or a ":.snap" other than to
create a private graphcap file and your own device entry with the
specified size/resolution. For instance, to create your own graphcap
file do:
cl> copy dev$graphcap home$mygraphcap
cl> reset graphcap = home$mygraphcap
cl> gflush
The last two lines you can put in your login(user).cl file, the gflush
is needed to reinitialize the system. Then to create your own device
entry add something like:
mypsdump| :XO#300:XW#1950:YO#1000:YW#1300:tc=g=psdump:
The XO/YO (x-oh/y-oh, not x-zero/Y-zero) specify the offset of the
plot on the page, the XW/YW and the size of the plot in pixels. You
can do the math to figure out how to make a particular size given a
300 dpi printer. Then just snap to device 'mypsdump', remember to
'gflush' after the plot and after each change to the graphcap file.
Cheers,
-Mike
Post generated using Mail2Forum (http://www.mail2forum.com)
> Warning, IRAF question... when setting stdgraph to psdump,
> how can one adjust the density, or resolution, of the image that is saved?
You can't do it from the command line or a ":.snap" other than to
create a private graphcap file and your own device entry with the
specified size/resolution. For instance, to create your own graphcap
file do:
cl> copy dev$graphcap home$mygraphcap
cl> reset graphcap = home$mygraphcap
cl> gflush
The last two lines you can put in your login(user).cl file, the gflush
is needed to reinitialize the system. Then to create your own device
entry add something like:
mypsdump| :XO#300:XW#1950:YO#1000:YW#1300:tc=g=psdump:
The XO/YO (x-oh/y-oh, not x-zero/Y-zero) specify the offset of the
plot on the page, the XW/YW and the size of the plot in pixels. You
can do the math to figure out how to make a particular size given a
300 dpi printer. Then just snap to device 'mypsdump', remember to
'gflush' after the plot and after each change to the graphcap file.
Cheers,
-Mike
Post generated using Mail2Forum (http://www.mail2forum.com)
Last post on Oct 26, 2005