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

Home » Public Forums » archive » iImage: Positioning and scaling from commandline?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
iImage: Positioning and scaling from commandline? [message #46686] Tue, 06 December 2005 10:01
Uwe is currently offline  Uwe
Messages: 1
Registered: December 2005
Junior Member
Dear IDL folks,

here is a very simple code producing an iImage with boxed axes and an
aspect ratio of 5:1.

iimage,dist(50),indgen(50),findgen(50)/5,dimensions=[400,300 ]

;plotting axes
idTool = itgetcurrent(Tool = oTool)
oIimage = oTool -> GetSelectedItems()
oAxes = (oIimage -> GetDataSpace())->GetAxes(/container)
idAxes = oAxes -> GetFullIdentifier()
success = oTool -> DoSetProperty(idAxes, 'STYLE', 2)
oTool -> CommitActions

The result is a very small image in quite a big window.
Does anybody of you know the steps that are necessary for enlarging
this image to windows size? I want to do this from the command line.
Using the mouse isn't easy either, because these green boxes you need
to hit are very far away from the image and need to be moved to far
outside the viewing area. I'd appreciate having these boxes right at
the edges of the image. I searched for hours in the itool framework,
but did not find the code where these boxes are placed.

When resizing, I'd like to keep the original aspect ratio. The
corresponding itool functionality (Visualization Browser -> DataSpace
-> Isotropic scaling) doesn't work properly any more once you have
changed the aspect ratio with the mouse.

Any help is appreciated very much!!

Uwe.
[Message index]
 
Read Message
Previous Topic: Re: Table Layout?
Next Topic: GRIDSTYLE=1 rendering dependent on graph position?

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

Current Time: Sun Oct 12 01:02:32 PDT 2025

Total time taken to generate the page: 2.40029 seconds