View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

about eps

bai wrote on May 25, 2007

Hi,
When i save .fit to eps, i use the following:
:.snap eps
But x-label is too small.
How do i change the size of labels in .eps files?
Thanks

Mike Fitzpatrick wrote on May 25, 2007

Bai,

To change the text size you need to modify the graphcap entry for the device, specifically the :cw (char width) and :ch (char height) fields. These are expressed in terms of normalized device coords and default to values of 0.0125 and 0.0294 respecitively. To make the bigger, it's simplest to just tweak these values by putting an entry in the dev$graphcap file such as


myeps|       :cw#.025:ch#.0496:tc=uepsf:


You would then need to snap to ":.snap myeps" and tweak the values as needed. Be sure to do a "gflush" or ":.gflush" whenever you change the graphcap file. Hope this helps.

Cheers,
-Mike

P.S. If you'd had these questions last week I could have solved them in person, I just got back from Beijing on Monday 8-)

bai wrote on May 25, 2007

Thanks, Mike
If you need, i could be your guide, when you come to BJ next time.
:D

Karen Kwitter wrote on May 25, 2007

Hi,

When I do :.snap eps, the size of the labels is fine, but the very left edge of the image containining the first digit of the flux values is off the page. Is there a command that can give some blank space to pad the left edge?

Thanks!

Mike Fitzpatrick wrote on May 25, 2007

Hi Karen,

The plot position and size are controlled by parameters in the graphcap entry for the device. By default, the 'eps' entry uses an X-offset of 55, however using the 'epsl' entry to put it in landscape mode uses a value of 100 and may just do the trick. If you have STSDAS installed you can also use the PostScript kernel in there, i.e. the 'psidump' (landscape) or 'psidumpp' (portrait) devices to create a /tmp/psidmpXXXX.ps file; these also have a different offset.

Otherwise, you would need to create a custom graphcap file and device entry to change the offsets. Command-wise, you can use the cursor command ":.txset size=0.5" to make the text size half as large but it may not be quite what you're after. Hope this helps.

Cheers,
-Mike

Karen Kwitter wrote on May 25, 2007

Hi Mike,

Yep, epsl does the trick.

Thanks so much!
Karen

Last post on May 25, 2007