Matplotlib is Pythonβs most popular plotting library β foundation for Seaborn, Pandas plots.
Install: pip install matplotlib
Import: import matplotlib.pyplot as plt
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 10, 100)
y = np.sin(x)
plt.plot(x, y)
plt.title("Sine Wave")
plt.xlabel("x")
plt.ylabel("sin(x)")
plt.grid(True)
plt.show()
Used in ML: plot loss curves, predictions vs actual.