In the following code the displayed image is initially displayed with axes
going from 0 to 103, ie there is no white space between the image and the
axes. 

After the first ginput mouse click the axes limits change to -20 to 120 with
white space between the image and the axes. This is a little disconcerting
if the user is trying to accurately pick points on an image. 

if I use ax1.axis('off') the white space disappears but the image changes
size. How do I fix the image size so ginput dosen't rescale it. 


import pylab

x1 = pylab.rand(103, 103)
fig1 = pylab.figure(1)
ax1 = fig1.add_subplot(111)
ax1.imshow(x1)
x = fig1.ginput(2)

fig1.show()
-- 
View this message in context: 
http://www.nabble.com/ginput-changes-axes-limits-tp18863282p18863282.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to