Ipython notebook --pylab inline: plot scaling

Can I zoom in if the built-in line is on? It is especially important that the rotation and scaling of 3d-graphics are a necessary feature.

+61
python matplotlib ipython
May 18 '12 at 3:13
source share
7 answers

Now thanks to mpld3 , itโ€™s very easy to enable scaling of embedded graphics!

All you have to do is install mpld3 ( pip install mpld3 ) and then add this to your laptop:

 %matplotlib inline import mpld3 mpld3.enable_notebook() 

Now your stories will receive a toolbar menu in the lower left, in which you can enable mouse scaling :)

+73
Apr 08
source share

Now you can use %matplotlib notebook instead of %matplotlib inline , and you can interact with your charts.

+61
Dec 13 '16 at 16:20
source share

Currently, the closest you can redraw it in a larger size using the figsize function. He expects measurements in inches, which caught me the first time I tried to use it.

There are several factories for the rich backend that will allow you to manipulate real-time stories using HTML5, but I think it will be a few months before that.

If you use a laptop on your local computer, at the moment the easiest option may not be to use the built-in mode, so the graphics are displayed in separate windows.

+10
May 18 '12 at 23:06
source share

mpld3 slowed down my laptops. I believe that it is better to use the nbagg backend , which provides the same interactive tools, but also allows you to save graphics using the right-click menu:

 import matplotlib matplotlib.use('nbagg') import matplotlib.pyplot as plt 
+6
Mar 17 '16 at 19:50
source share

Another good example that has emerged recently is to make work outsourcing intricate:

https://plot.ly/python/3d-plots-tutorial/

Let them handle the rendering, panning and zooming for you!

+4
Mar 19 '15 at 2:39
source share

matplotlib.use('nbagg') didn't work for me either. I found mdplt3 rather slowly. Instead of scaling, I ended up resizing my figure (making it big) using this post: Setting the chart width in an ipython laptop

0
Sep 26 '17 at 18:52
source share

Just paste this code into your commands:

  %matplotlib notebook 

This will give what you need. in more detail there :

0
Jan 15 '19 at 14:23
source share



All Articles