On Mon, Aug 3, 2009 at 6:55 AM, Bas van Leeuwen<leeu...@gmail.com> wrote:
> PS, @John, I'd like to try the imshow approach first because it is not > in a figure but in a QT frame containing several subplots. But thank > youfor the suggestion, I will try if the imshow approach appears > fruitless. All matplotlib axes and subplots live in figures, you just may not know it. The call to gca in your code below: >> ax = gca() >> limx = ax.get_xlim() automatically creates a figure and adds the axes to is. So you can still access the figure, eg fig = ax.figure You can then call figimage # transform from axes coorrs (x,y) -> display coords (xo,yo) xo, yo = ax.transData.transform_point((x,y)) fig.figimage(Z, xo, yo) where Z is your image array JDH ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users