Re: ps file with text [message #50425 is a reply to message #50396] |
Mon, 02 October 2006 11:22   |
Benjamin Hornberger
Messages: 258 Registered: March 2004
|
Senior Member |
|
|
adisn123@yahoo.com wrote:
> Hi,
> Using "set_plot = ps" I created a ps file.
> I'm trying to resize the ps image and add some text (such as Figure1.
> ~~~) in my word text of lab paper.
> How do I take the ps file and add text into it?
>
> Thanks.
>
Hi,
to add text into the PS file while creating in IDL you would use the
XYOUTS command. Note that on the PS device you probably don't want to
use device coordinates to position the text, but rather data or normal
coordinates. To change the size, you can use the command "device,
xsize=..., ysize=..." after "set_plot, 'ps'", even though you can
usually scale the figure later when inserting it into the document.
Another option would be to use iTools instead of direct graphics to
visualize the data and then export to PS. In iTools you can easily add
simple annotations. You can save the iTool and edit it later, which I
find very useful.
To edit a PS file after it has been created, many people use Adobe
Illustrator (which is quite expensive). I believe free programs to edit
PS files are, for example, Xfig or Inkscape, but I don't have any
experience with them.
As a side note, text like "Figure 1" often appears in the figure
*caption* instead of the the figure itself, in which case you would use
the text processing software (Word, LaTeX, ...) to do that (which can
also take care of automatic numbering etc.).
Good luck,
Benjamin
|
|
|