Bikash Santra
Indian Statistical Institute, Kolkata
# 3D Plots
%matplotlib notebook
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax = Axes3D(fig)
X = np.arange(-4, 4, 0.25)
Y = np.arange(-4, 4, 0.25)
X, Y = np.meshgrid(X, Y)
R = np.sqrt(X ** 2 + Y ** 2)
Z = np.sin(R)
ax.plot_surface(X, Y, Z, rstride=1, cstride=1, cmap=plt.cm.hot)
ax.contourf(X, Y, Z, zdir='z', offset=-2, cmap=plt.cm.hot)
ax.set_zlim(-2, 2)
plt.show()
Pyplot - http://matplotlib.org/users/pyplot_tutorial.html
Image - http://matplotlib.org/users/image_tutorial.html
Text - http://matplotlib.org/users/index_text.html
Artist - http://matplotlib.org/users/artists.html
Path - http://matplotlib.org/users/path_tutorial.html
Transforms - http://matplotlib.org/users/transforms_tutorial.html
a) Matpltlob documentation gallery
b) https://www.scipy-lectures.org/intro/matplotlib/index.html
c) https://www.scipy-lectures.org/packages/3d_plotting/index.html
d) https://github.com/kuleshov/cs228-material/blob/master/tutorials/python/cs228-python-tutorial.ipynb