/home/thomas/devel/ipfx/ipfx/plot_qc_figures.py:9: DeprecationWarning: scipy.misc is deprecated and will be removed in 2.0.0
import scipy.misc
We are using imsave, which according to 1 will be removed in scipy 2.0. 2 suggests to use imageio.imwrite instead.