XD blog

blog page

crash


2014-12-07 A few tricks with matplotlib

On Windows, matplotlib crashes sometimes. I found this explanation and it worked for me. matplotlib crashing Python

plt.close('all')

The latest version 1.4.2 enables zooming in notebook: The nbagg backend. See also ipython notebook on linux VM running matplotlib interactive with nbagg.

Last trick: ggplot style with matplotlib.

import matplotlib.pyplot as plt
plt.style.use('ggplot')

Xavier Dupré