[wxPython-users] combining figures

Christopher Barker Chris.Barker at noaa.gov
Wed Dec 20 15:55:01 PST 2006


Mike Cantor wrote:
> 1. One colossal plotDialog with tons of stuff in it in subplots 
> (hopefully implemented some other way besides duplicating all of the 
> individual plot routines within one dialog).

with some re-factoring, you could extract the plot routines and re-use 
them -- make functions that take a MPL axis as an argument, and do all 
the plotting to it.

> 2. A word (or some other format) document with a bunch of jpegs pasted 
> into it (best)

How about PDF? Check out reportlab -- you should be able to put images 
into a pdf with it, and you can get the images from MPL.

You could also do Postscript directly with wx and the wxPostscriptDC

For Word, you could probably drive Word with the com interface and PyWin32

> 3. A dialog with a bunch of jpegs pasted in to it.

That's not too hard either -- You can use DC.DrawBitmap, etc.

>  Can matplotplib or
> wxPython paste an image from the clipboard (I know I can copy to it)?

There should be a way to get in image into the clipboard, but I don't 
know what it is.

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov




More information about the wxpython-users mailing list