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

Data Science with Python Easy

Data Science with Python — Easy

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

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?

Related questions