On Wed, Jun 16, 2010 at 4:06 PM, Malte Dik <[email protected]> wrote: > Hi, > > Eamon Caddigan <[email protected]> >> The reason my initial attempts failed was because I (erroneously) >> assumed that the default axis spanned (0, 0), (1, 1). Now I that I >> know better, I can place an axis for each image in the right place and >> everything looks fine. >> >> However, I'm still interested in knowing how to query the pixel size >> of the figure, so I can translate normalized axis coordinates to pixel >> coordinates. > > http://matplotlib.sourceforge.net/users/transforms_tutorial.html > > Maybe something along the lines > ax.transAxes.transform((0, 0)) - ax.transAxes.transform((1, 1))
transAxes.transform() was exactly what I was looking for. Thanks! -Eamon ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Matplotlib-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
