Last Updated: November 21, 2025
Basic Plotting
import matplotlib.pyplot as plt\n\nplt.plot(x, y)\nplt.scatter(x, y)\nplt.show()
Customization
plt.xlabel('X')
X label
plt.title('Title')
Set title
plt.grid()
Show grid
💡 Pro Tip:
Use plt.style.use('seaborn') for better defaults!