ipython notebook --pylab inline: zooming of a plot
Now thanks to mpld3 it's super easy to enable zooming in inline plots!
All you have to do is install mpld3 (pip install mpld3
), and then add this to your notebook:
%matplotlib inline
import mpld3
mpld3.enable_notebook()
Now your plots will get a toolbar menu at the bottom left, in which you can enable mouse zooming :)
You can now use %matplotlib notebook
instead of %matplotlib inline
and you'll be able to interact with your plots.