October 2014
Beginner to intermediate
348 pages
6h 55m
English
Two-dimensional plots are the bread and butter of data visualization. However, if you want to show off, nothing beats a good three-dimensional plot. I was in charge of a software package that could draw contour plots and three-dimensional plots. The software could even draw plots that when viewed with special glasses would pop right in front of you.
The matplotlib API has the Axes3D class for three-dimensional plots. By demonstrating how this class works, we will also show how the object-oriented matplotlib API works. The matplotlib Figure class is a top-level container for chart elements:
Figure object as follows:fig = plt.figure()
Axes3D object from the Figure object:ax = Axes3D(fig)
Read now
Unlock full access