Matplotlib - 3D Plotting
You want to plot a 3D scatter plot with points colored by their z-value. Which code snippet correctly creates the 3D axes and colors the points accordingly?
fig.add_subplot(111, projection='3d') to create 3D axes linked to the figure.c=z and a colormap like cmap='viridis' to scatter() to color points based on z.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions