Module 10
Matplotlib introduction
Creating visualizations.
Making plots
Matplotlib is the most common plotting library in Python. It lets you create charts and graphs from your data.
Python
import matplotlib.pyplot as plt
plt.plot([1, 2, 3], [10, 20, 15])
plt.savefig("plot.png")
print("Plot saved")→ Plot saved
Your task
Create a plot
- Plot [10, 20, 15] and save.