comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: PS image --> Latex
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: PS image --> Latex [message #731] Thu, 29 October 1992 14:12
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
In article <1992Oct29.110114.3909@arizona.edu>, wu@ece.arizona.edu (Hsien-Huang Wu) writes...
> Has anyone tried to include a ps image file generated from PV~WAVE 'TV'
> into Latex file? I have a couple of 2-D, 3-D plot figures from PV~WAVE, when they
> are included in Latex, after dvips, the figure can be put exactly in the
> page center. But for images ps file, they are usually shifted to the left
> instead of staying at the center. All of them are created as .eps file
> format, and the commands that I used to generate ps image are:
>
> -------
> device,/encapsulated,filename=out_name
> device,bits_per_pixel=4
> tv,img
> device,/close
> ---------
>
>
> Could anyone give me some ideas why this is happening?
> Any help would be much appreciated. (e-mail please)
>
> - H. Wu

I use IDL, but everything should be the same in PV-Wave.

When printed to a PostScript file, encapsulated or not, IDL always uses the
same size plot area. When you use the command TV the way you do, you're
telling IDL to put the image in the lower left corner of this plot area. It
does expand the size of the image to fill as much of the available space as it
can (but only for PostScript output).

To center the image, use the optional X and Y parameters to the TV (or TVSCL)
command. With PostScript output, I also prefer to include the XSIZE and YSIZE
keywords to give me complete control over the size of the displayed image.
These parameters can be given in device, normalized, or data coordinates
(assuming that the data coordinate system has been defined), or on PostScript
devices they can also be given in inches or centimeters.

I do have software that will automatically scale the image to the plot area,
and center it, regardless of the graphics device. This software is available
via anonymous ftp from

idlastro.gsfc.nasa.gov (128.183.57.82)

in the directories

contrib/thompson
contrib/thompson/standalone

Good luck,

Bill Thompson
[Message index]
 
Read Message
Previous Topic: XINTERANIMATE help !!!!!!
Next Topic: using wave filename command in WAVE v4.00

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 23:45:39 PDT 2025

Total time taken to generate the page: 0.16036 seconds