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
Matplotlib and seaborn 3 · Basics
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
Was this page helpful?