Is it possible to zoom into a plot if inline is activated? Especially regarding to 3d-plots rotating and zooming is a necessary feature.
If you press 'x' or 'y' while panning the motion will be constrained to the x or y axis, respectively. Press the right mouse button to zoom, dragging it to a new position. The x axis will be zoomed in proportionate to the rightward movement and zoomed out proportionate to the leftward movement.
Next, to increase the size of the plot in the jupyter notebook use plt. rcParams[“figure. figsize”] method and set width and height of the plot.
You can now use %matplotlib notebook
instead of %matplotlib inline
and you'll be able to interact with your plots.
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 :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With