Lesson 31 of 60
pythonMatplotlib Basics: Plotting with Python
15 minutes
Course progress52%
Matplotlib Basics
Matplotlib is the foundational plotting library in Python. It works well for static images and integrates tightly with Pandas.
Importing the library
import matplotlib.pyplot as plt
Simple line plot
x = [1, 2, 3, , ]
y = [, , , , ]
plt.plot(x, y, marker=, linestyle=)
plt.title()
plt.xlabel()
plt.ylabel()
plt.show()