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

Home » Public Forums » archive » Re: positioning a TV image within plotting region
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: positioning a TV image within plotting region [message #77829] Wed, 05 October 2011 11:06 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Matthew writes:

> Just a quick note... unless the aspect ratio of the postscript file is
> the same as that of the display (e.g. as is the case when using
> psCONFIG()), the variable pixel size will make the initial problem
> here persist. To fix the problem,
>
> x_size_old = !d.x_size
> y_size_old = !d.y_size
> set_plot, 'PS'
>
> x_size_ps = !d.x_size
> y_size_ps = !d.y_size
>
> px_size_x = x_size_ps / x_size_old
> px_size_y = y_size_ps / y_size_old
>
> position[0] = floor(position[0] * !d.x_vsize)
> position[1] = floor(position[1] * !d.y_vsize)
> position[2] = ceil(position[2] * !d.x_vsize)
> position[3] = ceil(position[3] * !d.y_vsize)
> xsize = (position[2] - position[0]) - px_size_x
> ysize = (position[3] - position[1]) - px_size_y
> xstart = position[0] + px_size_x
> ystart = position[1] + px_size_y
>
>
> This has worked so far...

Humm. I don't see how. :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Modern IDL Comments
Next Topic: positioning a TV image within plotting region

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

Current Time: Fri Oct 10 12:49:49 PDT 2025

Total time taken to generate the page: 0.79837 seconds