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

Home » Public Forums » archive » IDL 8.0 image() scaling
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
IDL 8.0 image() scaling [message #75446] Tue, 08 March 2011 08:32
Henry Throop is currently offline  Henry Throop
Messages: 3
Registered: March 2011
Junior Member
Let's say I've got a small 2D array, and I want to use IDL 8.0
graphics to display it, filling up the whole window. Certainly there
must be some simple way to do this, but I can't figure it out! I can
do

IDL> im = image(dist(20))

but this just puts the tiny image at the screen center, unscaled (one
pixel per pixel). I can then use

IDL> im.scale, 20, 20

to zoom it. Or I can use the mouse and grab the handles, but of course
I don't want to do that every time. In earlier versions I'd always use
rebin(), but it seems like IDL 8.0 *should* do this properly by
itself. In fact, image() will automatically scale *down* the image if
it's larger than the screen size; what I want is for it to also scale
*up* the image when it's too small.

How do I do this? None of the seemingly obvious combinations of /
INTERPOLATE, IMAGE_DIMENSIONS, DIMENSIONS, etc. do it.

Thanks,
-Henry
[Message index]
 
Read Message
Previous Topic: overplotting contours on a map
Next Topic: HASH question

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

Current Time: Wed Oct 08 16:09:04 PDT 2025

Total time taken to generate the page: 0.00235 seconds