Matplotlib Line Plot

PHOTO EMBED

Tue Sep 02 2025 04:38:53 GMT+0000 (Coordinated Universal Time)

Saved by @root1024 ##python #matplotlib

import matplotlib.pyplot as plt
plt.plot([2,6,11],[4,6,9],"r",label="line one",linewidth=5)
# plt.plot([2,4,5,6,8,9],[4,5,6,7,8,9],"g",label="line two",linewidth=5)
plt.legend()
plt.xlabel("X-Axis---------------------->")
plt.ylabel("Y-Axis-------------------->")
plt.title("Information")
plt.grid(True,color="k")
plt.show()
content_copyCOPY