from matplotlib.backends.backend_gtk3agg import FigureCanvas # or gtk3cairo.
These examples provide an introduction to Data Science and classic Machine Learning using NumPy, pandas, Matplotlib, and scikit-learn. They are taken, with some changes, from the book "Python Data ...