import matplotlib.pyplot as plt

square = [1,4,9,16,25]
plt.plot(square,linewidth = 5)
plt.title('Square numbers',fontsize = 24)
plt.xlabel('Value',fontsize = 24)
plt.ylabel('Suqare of Value',fontsize = 24)
plt.tick_params(axis = 'both',labelsize = 12)

plt.show()

plot折线图

相关文章: