I previously used version '0.90.1' and could do something along these lines.

figure.add_axes
...  etc
canvas.Refresh()

User makes a new selection and in the code I do:

figure.clear()
figure.add_axes
... etc
canvas.Refresh()

With 0.99 and wxAgg on Windows Vista with wxPython 2.8.10.1 Unicode and 
Python 2.5.4 this does not work.

The "old" figure remains and the new one is only shown when I resize the 
frame which contains a wx.Splitter with the right window containing the 
mpl.figure on a panel.

If I add canvas.draw() then most is shown, except some mpl.text elements 
(e.g. figure.title) - which again are shown if I resize.

Appreciate any hint on how to solve this.

Werner





------------------------------------------------------------------------------
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

Reply via email to