traitsui matplotlib editor with toolbar using qt backend
I was unable to find any notes on using the mpl toolbar with a qt-based traitsui mpl editor. I put together this class, which seems to work, so I'm putting it out on the email list so others in my situation can find a possible solution easily. The example included also uses an mpl widget and event handling. It would be nice to see more examples of how to use matplotlib with traitsui with the official docs.
from pyface.qt import QtGui, QtCore
from traits.etsconfig.api import ETSConfig
ETSConfig.toolkit = 'qt4'
import matplotlib as mpl
# We want matplotlib to use a QT backend
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.figure import Figure
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg
from enthought.traits.api import Any, Instance
from enthought.traits.ui.qt4.editor import Editor
from enthought.traits.ui.qt4.basic_editor_factory import BasicEditorFactory