Matplotlib and seaborn 3 · Basics
Add a title and axis labels
Label the chart so it can be understood on its own.
plt.plot(x, np.sin(x), label="sin(x)")
plt.title("A sine wave")
plt.xlabel("x")
plt.ylabel("sin(x)")
plt.legend()
plt.grid(True)
Official Matplotlib and seaborn 3 documentation