June 2015
Beginner
348 pages
8h 44m
English
We will plot a simple three-dimensional function:
ax = fig.add_subplot(111, projection='3d')
meshgrid() function to initialize the x and y values:u = np.linspace(-1, 1, 100) x, y = np.meshgrid(u, u)
ax.plot_surface(x, y, z, rstride=4, cstride=4, cmap=cm.YlGnBu_r)
The result is the following ...
Read now
Unlock full access