Matplotlib - 3D Plotting
What will the following code output?
import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np fig = plt.figure() ax = fig.add_subplot(111, projection='3d') x = np.linspace(0, 1, 5) y = np.linspace(0, 1, 5) z = x + y ax.scatter(x, y, z) plt.show()
