I’m using the matplotlib library for a simple utility application to plot the output of various other programs. These plots are easily exported in a variety of formats; the next logical step is to print them directly from wxPython rather than through an external application. Is there a straightforward way to do this? The book focuses on printing data from windows or raw text, not binary documents, and I couldn’t find much online.
Alternately, if the HTML printing supports embedded images, that might be enough for my purposes.
thanks,
Nat
Nathaniel Echols wrote:
the next logical step is to print them directly from wxPython rather than through an external application. Is there a straightforward way to do this? The book focuses on printing data from windows or raw text, not binary documents, and I couldn't find much online.
Alternately, if the HTML printing supports embedded images, that might be enough for my purposes.
yes, it should.
Another option is to get the MPL image as a wxBitmap (the wx backend already does this to display it), and print that with a wxPrinterDC, just like how you print other things.
now that I think about it, doesn't the pylab frame with the wx back-end support printing? You can see that is done.
-Chris
···
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception