Re: [Matplotlib-users] axes and transData

2008-09-29 Thread Jae-Joon Lee
Hi, As far as I know, the destination coordinate of trans* is a display (canvas) coordinate, not the normalized figure coordinate. It has a dimension of f.get_figwidth()*f.get_dpi(), f.get_figheight()*f.get_dpi(). For example, transFigure transforms the normalized figure coordinate to the display

[Matplotlib-users] axes and transData

2008-09-29 Thread Yves Revaz
Dear List, I would like to define a new second plot inside a first plot using the axes command. But I need the position and size do be defined not by the relative figure coordinates but by data coordinates. I have found the following trick : ax = gca() f = gcf() x,y = ax.transData.transform