Hi
When I send an image to iImage there seems to be now way to resize it except by manually dragging a corner out. This approach is slow when I have a lot of figures to make and I can't control the exact size and aspect ratio of the image when I manually enlarge it. I would really like to be able to control the size of the image and color bar to be the same height and force the image pixels to be square.
At the moment, I create the iImage window and alter its contents with the code below.
The image_dimensions keyword seems to blow up the image, but then only a part of it gets displayed within the image object in the iTools window.
Any help appreciated,
Shane
iImage,alog10(s_pdft),s_fx,s_fy, RGB_TABLE=ct,/SCALE_ISOTROPIC,xrange=[-0.5,0.5],yrange=[-0.5,0.5],dimensions=[800,800],/insert_colorbar,view_title='Periodogram'
idTool = ITGETCURRENT(TOOL=oTool)
idAxesContainer = oTool->FindIdentifiers('*AXES', /CONTAINER)
void = oTool->DoSetProperty(idAxesContainer, 'STYLE', 2)
idPlot = oTool->FindIdentifiers('*axes', /VISUALIZATIONS)
succ = oTool->DoSetProperty(idPlot, 'THICK', 2)
succ = oTool->DoSetProperty(idPlot, 'FONT_SIZE', 12)
idPlot = oTool->FindIdentifiers('*axis2', /VISUALIZATIONS)
succ = oTool->DoSetProperty(idPlot, 'AXIS_TITLE', 'Y-frequency')
idPlot = oTool->FindIdentifiers('*axis0', /VISUALIZATIONS)
succ = oTool->DoSetProperty(idPlot, 'AXIS_TITLE', 'X-frequency')
idPlot = oTool->FindIdentifiers('*Colorbar',/ANNOTATIONS)
succ = oTool->DoSetProperty(idPlot, 'AXIS_TITLE', 'Log!B10!N(Power)')
succ = oTool->DoSetProperty(idPlot, 'ORIENTATION', 1)
oTool -> CommitActions
succ = oTool->DoSetProperty(idPlot, 'TEXTPOS',1)
oTool -> CommitActions
succ = oTool->DoSetProperty(idPlot, 'TEXTPOS',1)
oTool -> CommitActions
succ = oTool->DoSetProperty(idPlot, 'BORDER_ON',1)
oTool -> CommitActions
|