1. Home
  2. Data Science
  3. Matplotlib
  4. What function is used to create a 3D plot in Matplotlib?

Added 24 Feb 2024

What function is used to create a 3D plot in Matplotlib?

  1. plt.plot3d()
  2. plt.plot_3d()
  3. plt.plot3D() Correct answer
  4. plt.plot() with 3D coordinates

Correct answer

C. plt.plot3D()

18 views

MCQSEXAM

Explanation

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.

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Matplotlib MCQs

Practise all Matplotlib MCQs

Similar MCQs