Matplotlib offers several different ways to visualize three-dimensional data. In this recipe, we will demonstrate the following methods:
- Drawing surfaces plots
- Drawing two-dimensional contour plots
- Using color maps and color bars
Matplotlib offers several different ways to visualize three-dimensional data. In this recipe, we will demonstrate the following methods:
Start Jupyter and run the following three commands in an execution cell:
%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
Run the following code in a Jupyter code cell:
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
f = lambda x,y: x**3 -...