What function is used to create a 3D plot in Matplotlib?
Correct answer
C. plt.plot3D()
18 views
C. plt.plot3D()
18 views
plot3D() draws a 3-D line plot. It is called on a three-dimensional Axes created with ax = plt.axes(projection="3d"): ax.plot3D(x, y, z).
Companion methods include scatter3D() and plot_surface().
For more solved questions like this one, see Data Science MCQs on MCQsExam.com.
Not sure why the answer is C? Ask here and get an explanation.