How can I force the x=image(...) command to give me a window that is the same size as my image? [message #88574] |
Tue, 13 May 2014 16:16  |
munka
Messages: 36 Registered: December 2009
|
Member |
|
|
Here is my code:
im1=image(big_img,dimensions=n_elements(big_img[*,0]),n_elem ents(big_img[0,*])],window_title=slitname+'-+filtername,max_ value=highval,min_value=lowval,margin=[0,0,0,0],location=[0, 0],/xstyle,/ystyle)
I've explicitly given it dimensions, margin, and location. I even threw in xstyle and ystyle for good measure. It seems like there is always HUGE white space above and below my actual image. Its never in the x direction, only in the y direction.
This is an issue because I want the exact location on the image where someone clicks and if there is whitespace
I'm on mac os 10.8 if that changes anything.
|
|
|