Which matplotlib function is used to create a simple line plot?

Select the correct answer: Single Choice

Key points

  • plt.bar() is used for bar plots, not line plots.
  • plt.scatter() is used for scatter plots, not line plots.
  • plt.hist() is used for histograms, not line plots.

Ready to go further?