【发布时间】:2020-11-18 07:26:09
【问题描述】:
图
x = np.linspace(2010,2210,20)
Tline, = plt.plot(x,T, label="No Taxation", linewidth=2)
TtaxLine, = plt.plot(x,T_tax, label= "Ad Valorem", linestyle='--', linewidth=2)
TunitLine,= plt.plot(x,T_unit, label="Per Unit Tax", linewidth=2)
legend= plt.legend(handles=[Tline, TtaxLine, TunitLine], loc="upper left")
plt.title ('Effect of Taxation on Mean Temperature', fontsize=16)
plt.xlabel('Year')
plt.ylabel('Degrees Celsius')
plt.show ()
图表已生成,但图表中没有线条
【问题讨论】:
标签: python matplotlib graphing