#!/usr/bin/env python

import matplotlib
from pylab import figure, show

def press(event):
    print "Mouse press at",event.x,event.y
    print fig.hitlist(event)

print matplotlib.__version__

fig = figure()
ax  = fig.add_subplot(111)

fig.canvas.mpl_connect('button_press_event', press)

# if these two are commented out, things work fine.
ax.set_xscale('log')
ax.set_yscale('log')

ax.plot([1,2,3,4,5],[2,4,3,2,1], 'bo')

show()
