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 #77997 is a reply to message #77829] Mon, 10 October 2011 16:22 Go to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
On Oct 5, 2:06 pm, David Fanning <n...@dfanning.com> wrote:
> 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.")

Me neither :-p Perhaps I did not have my contacts in.

I am using cgImage to do this and it looks great, but the problem
keeps bugging me and I keep returning to my own program. In the PS
file, the plot still covers the axes, which is bad when I am trying to
find synchronous events between plots... Anyway, I will figure it out
eventually, but I wanted to ask: Do you find any use for PS anymore?
Only the high end printers come equipped with PS processing. Until IDL
added the PDF option, I usually ended up converting my PS files to
TIFF of PNG to have a file anyone could open.
[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: Sat Oct 11 11:23:34 PDT 2025

Total time taken to generate the page: 0.88669 seconds