0
import matplotlib.pyplot as plt
squares = [1,4,9,16,25]
plt.plot(squares,linewidth=5)
plt.title('Square Number',fontsize=24)
plt.xlable('Value',fontsize=14)
plt.ylable('Square of Value',fontsize=14)
plt.tick_params(axis='both',lablesize=14)
plt.show()
はAttributeError:モジュールのmatplotlib.pyplot 'には属性 'xlable'
があるため、問題のバージョンのことですがありませんか?
'xlabel'、' ylable' - > 'ylabel'、' lablesize' - > 'labelsize' – falsetru
'label'のスペルを間違えないでください。 – jasonharper