>>>>> "Edward" == Edward Abraham <Edward.Abraham@...> writes:
Edward> Interactive use is great, but I need to draw Matlplotlib
Edward> plots to a window from within a wx application. The
Edward> example linked to from the screenshots page
Edward> (embedding_in_wx.py) is broken. I have attached a simple
Edward> modified version (no toolbar, just a plot). Matplotlib
Edward> window redraws are quite slow, and the default behaviour
Edward> is ugly during resizing. The example shows how to modify
Edward> the FigureCanvas class to redraw only during idle
Edward> time. This means that there is only one redraw during
Edward> resizing. The wxagg backend is chosen, as for the simple
Edward> plot shown here it is quicker than the current
Edward> implementation of the wx backend.
OK, thanks for letting me know. I updated the website - the link
should have, and now does, point to examples/embedding_wx2.py. Note
the matplotlib examples dir, with the src distribution and at
http://matplotlib.sf.net/examples, does contain a few examples showing
how to embed matplotlib into WX/WXAgg. Eg, examples/embedding_wx2.py
shows how embed use the toolbar as well.
Would you mind if I add your example to the examples subdir?