wx.Printout: how to print a matplotlib figure

Hello,
just a (I hope) short question: how can I print a figure from matplotlib (CanvasFigureWxAgg) with wx.Printout, i.e. how can I tell dc to print the figure?

Does something like 'dc.DrawText' also exist for a whole canvas?

Thanks in advance!

Frederik Golks

F. Golks wrote:

Hello,
just a (I hope) short question: how can I print a figure from matplotlib (CanvasFigureWxAgg) with wx.Printout, i.e. how can I tell dc to print the figure?

Does something like 'dc.DrawText' also exist for a whole canvas?

Get the figure as a bitmap and use dc.DrawBitmap.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!