Python MatPlotLib Legend, Title, Label Tutorial 2

MyStudy
MyStudy
2.5 هزار بار بازدید - 8 سال پیش - This Video Will Explain  How
This Video Will Explain  How to add legend, Title, and Label to Plot with Matplotlib library.

X = [1,2,3,4,5,6]
Y = [2,6,0,-1,5,7]
plt.plot(X,Y, label="line")
plt.title("Basic Line Ploting")
plt.xlabel("X data")
plt.ylabel("Y data")
plt.show()
8 سال پیش در تاریخ 1395/05/03 منتشر شده است.
2,525 بـار بازدید شده
... بیشتر