Re: How can I force the x=image(...) command to give me a window that is the same size as my image? [message #88584 is a reply to message #88583] |
Wed, 14 May 2014 13:57   |
munka
Messages: 36 Registered: December 2009
|
Member |
|
|
On Wednesday, May 14, 2014 1:55:33 PM UTC-7, Phillip Bitzer wrote:
> On Wednesday, May 14, 2014 2:24:23 PM UTC-5, myname...@gmail.com wrote:
>
>> On Wednesday, May 14, 2014 12:35:23 AM UTC-7, Helder wrote:
>
>>> big_img = dist(512)
>
>>> mx = max(big_img, min=mn)
>
>>> im1=image(big_img,dimensions=size(big_img,/dimensions),windo w_title='title',max_value=mx,min_value=mn,margin=[0,0,0,0],l ocation=[0,0],/xstyle,/ystyle)
>
>> Hmmm. Is it a factor if I'm using the idlde? It seems to show a window with no whitespace when run from the command line, but there is whitespace when I'm using idlde.... Is there a way to fix this?
>
>
>
> The code from Helder works fine for me in idlde, no whitespace. OS 10.9.2.
>
>
>
> IDL> help, !VERSION
>
> ** Structure !VERSION, 8 tags, length=104, data length=100:
>
> ARCH STRING 'x86_64'
>
> OS STRING 'darwin'
>
> OS_FAMILY STRING 'unix'
>
> OS_NAME STRING 'Mac OS X'
>
> RELEASE STRING '8.2.3'
>
> BUILD_DATE STRING 'May 2 2013'
>
> MEMORY_BITS INT 64
>
> FILE_OFFSET_BITS
>
> INT 64
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) ?
|
|
|