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

Home » Public Forums » archive » window size
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: window size [message #58565 is a reply to message #40795] Fri, 01 February 2008 10:42 Go to previous message
rpertaub@gmail.com is currently offline  rpertaub@gmail.com
Messages: 43
Registered: January 2007
Member
On Feb 1, 1:24 pm, David Fanning <n...@dfanning.com> wrote:
> Spon writes:
>> Should this:
>> ... XRange=[0:s[1]], YRange=[0:s[2]] ...
>> perhaps be:
>> ... XRange=[0,s[1]], YRange=[0,s[2]] ..?
>
>> As it stands I can't run your code either.
>
> Oh, right. I sometimes lose these error messages in
> the IDL Workbench. :-(
>
> No one you are having trouble. I just got new glasses
> and I'm having some troblem adjusting. :-(
>
> Here is code that works:
>
> image = Loaddata(16)
> s = Size(image, /Dimensions)
> pos = [0.1, 0.1, 0.9, 0.9]
> TVImage, image, Position=pos, /Keep_Aspect
> Plot, [0,1], XRange=[0,s[1]], YRange=[0,s[2]], $
> NoData=1, NoErase=1, XStyle=1, YStyle=1, Position=pos
> Cursor, x, y, /Data, /Down & Print, Round(x), Round(y)
>
> I've left the axis there, so you can see how it works
> a little better. :-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

It works great!!

Thank You so much!

Today is my last day here, so not sure how much I will be using IDL in
my next position. Just wanted to say thank you for all the help over
last year!
RP
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: EMACS or IDL Workbench
Next Topic: county and urban shapefiles

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

Current Time: Sat Nov 29 18:20:15 PST 2025

Total time taken to generate the page: 0.00926 seconds