Matplotlib and seaborn 3 · Basics

Draw a line chart

Plot y against x and show the figure.

x = np.linspace(0, 10, 100)
plt.plot(x, np.sin(x))
plt.show()

Official Matplotlib and seaborn 3 documentation

More basics commands

All basics commands · Matplotlib and seaborn 3 cheatsheet

Was this page helpful?