Printing in wx

Hi!

I’m trying to print my plots in a wxScrolledPanel under Windows XP but it dosen’t work. I only can print / preview the start of the plot on the left upper site, the rest of page is empty:

http://www.snowflake-sl.info/printing_in_wx.JPG

I used printing according the example of matplotlib printing_in_wx.py.

self.canvas = FigureCanvasWx(self.panel, -1, self.fig)

self.Bind(wx.EVT_MENU, self.onPrint, id=MENU_PRINT)

def onPrint(self,event=None):
self.canvas.Printer_Print(event=event)

BTW if I want to run this demo, Python crashes.

Any ideas?

Kind regards,

Stefanie

Stefanie Lück wrote:

I'm trying to print my plots in a wxScrolledPanel under Windows XP but it dosen't work. I only can print / preview the start of the plot on the left upper site, the rest of page is empty:

I wonder if that has to do with how you are using the scolledpanel, and DCs. Post a sample (as a as-small-as-possible-running-app, if you can), and we can take a look.

I used printing according the example of matplotlib printing_in_wx.py.

BTW if I want to run this demo, Python crashes.

it works fine for me on OS-X

What messages to you get with your crash? What versions of Python, wxPython and MPL are you running?

-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@...259...