iImage: Positioning and scaling from commandline? [message #46686] |
Tue, 06 December 2005 10:01 |
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.
|
|
|