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 #88587 is a reply to message #88585] Wed, 14 May 2014 14:35 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Phillip Bitzer writes:

> Sorry, I missed this. But your big_img does work fine, i.e., no whitespace, for me as well.

Same version of IDL that Philip is using, and without having any windows
open, this code produces a window with white space top and bottom:

big_img = dist(512, 248)
mx = max(big_img, min=mn)
im1=image(big_img,dimensions=size
(big_img,/dimensions),window_title='title',max_value=mx,min_ value=mn,mar
gin=[0,0,0,0],location=[0,0],/xstyle,/ystyle)

It is as though the image refuses to give up its image aspect ratio.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[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: Wed Oct 08 19:53:01 PDT 2025

Total time taken to generate the page: 0.00430 seconds