Chapter 7. Embedding Matplotlib in wxWidgets
This chapter will explain how we can use Matplotlib in the wxWidgets framework, particularly using the wxPython bindings.
The contents we will present in this chapter are:
A brief introduction to wxWidgets and wxPython
A simple example of embedding Matplotlib in wxWidgets
Extending the previous example to include the Matplotlib navigation toolbar
How to update a Matplotlib plot in real-time using the wxWidgets framework
How to design a GUI with wxGlade and embed a Matplotlib
Figure
in it
Let's first start with an overview of the features of wxWidgets and wxPython.
Brief introduction to wxWidgets and wxPython
wxWidgets (formerly known as wxWindows, now available at http://www.wxwidgets.org/) is a widget toolkit used for creating GUIs.
One of its most important features is cross-platform portability: it currently supports Windows, Mac OS X, Linux (with X11, Motif, and GTK+ libraries), OS/2, and several other operating systems and platforms (including an...