November 2018
Beginner to intermediate
214 pages
5h 2m
English
In order to get the full 3D effect of our plot, we will Restart the kernel before using this plot, to allow us to bring in a different backend for Matplotlib. We will import this as usual, but replace matplotlib with matplotlib notebook, as shown here:
%matplotlib notebook# Set up figure size and DPI for screen demoplt.rcParams['figure.figsize'] = (6,4)plt.rcParams['figure.dpi'] = 150
From the output of the preceding code, we get a different backend. So, rather than generating a static image, we can save a PNG image (the output), with which we will use a bit of JavaScript to generate an interactive plot. There are also some widgets present on the left-hand side of the plot, as ...
Read now
Unlock full access