Which Matplotlib function creates a line plot?
-
A
plt.scatter()
-
B
plt.bar()
-
C
plt.plot()
Correct answer
-
D
plt.line()
Correct answer
C. plt.plot()
17 views
Explanation
plt.plot() is used to create line plots and other 2D plots in Matplotlib.
Doubts & discussion
Not sure why the answer is C? Ask here and get an explanation.
Ask a doubt about this MCQ