1,绘制简单的折线图. 1 import matplotlib.pyplot as plt 2 3 square = [1,4,9,16,25] 4 5 plt.plot(square) 6 plt.show() 2,使用matplotlib修改折现图的标签文字和线条粗细. 1 '''修改标签文字和线图粗细''' 2 import matplotlib.pyplot as plt 3 4 square = [1,4,9,16,25] 5 6 plt.plot(square,linewidth=5…