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

Home » Public Forums » archive » How can I force the x=image(...) command to give me a window that is the same size as my image?
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: How can I force the x=image(...) command to give me a window that is the same size as my image? [message #88589 is a reply to message #88586] Wed, 14 May 2014 14:51 Go to previous messageGo to previous message
munka is currently offline  munka
Messages: 36
Registered: December 2009
Member
On Wednesday, May 14, 2014 2:31:59 PM UTC-7, Chris Torrence wrote:
> On Wednesday, May 14, 2014 3:05:27 PM UTC-6, Phillip Bitzer wrote:
>
>> On Wednesday, May 14, 2014 3:57:44 PM UTC-5, myname...@gmail.com wrote:
>
>>
>
>>
>
>>
>
>>> Helder's code also worked with no whitespace for me, but the problem seems to happen with long rectangular images. Did you try it with big_img = findgen(1000,100) ?
>
>>
>
>>
>
>>
>
>> Sorry, I missed this. But your big_img does work fine, i.e., no whitespace, for me as well.
>
>
>
> Just to chime in, I think in IDL 8.3 and earlier, there was a hardcoded limit on the X and Y dimensions of the window. For the X dimension it was something like 450 pixels, while for Y it was 50 pixels.
>
>
>
> If you are still having problems, you might try adding the /WIDGET keyword, to force IDL widgets instead of Java SWT widgets.
>
>
>
> Also, even if you do end up with whitespace, why can't you use the ConvertCoord method to determine if the mouse click location is on or off the image?
>
>
>
> -Chris

I think the /widget keyword is doing what I want. I also noticed a slight difference in the appearance of the windows using idlde and just idl from a command line. it looks like running it from a command line automatically opens it up as a widget.

The convert_coord function would work, but another issue is that some people using the software have much smaller monitors than I do, and the images are taking up much more space, which ends up being a problem itself sometimes :)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to set error bar thickness in ERRORPLOT()?
Next Topic: Trouble resizing image

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

Current Time: Fri Nov 28 14:00:44 PST 2025

Total time taken to generate the page: 1.27813 seconds