On Thu, Jun 4, 2009 at 9:26 AM, Ole Streicher <ole-usenet-s...@gmx.net> wrote:
>> But to answer your question about matplotlib transforms. You could do >> ax = event.inaxes # the axes the event occurred in >> x, y = ax.transData.transform_point((event.xdata, event.ydata)) Yes: xdata, ydata = ax.transData.inverted().transform_point((xdisplay, ydisplay)) And the transAxes attribute maps 0..1 relative axes position to display. JDH ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users