|
|
@ -32,7 +32,7 @@ def tem_curve(data):
|
|
|
|
plt.text(tem_max_date + 0.15, tem_max + 0.15, str(tem_max), ha='center', va='bottom', fontsize=10.5) # 标出最高温度
|
|
|
|
plt.text(tem_max_date + 0.15, tem_max + 0.15, str(tem_max), ha='center', va='bottom', fontsize=10.5) # 标出最高温度
|
|
|
|
plt.text(tem_min_date + 0.15, tem_min + 0.15, str(tem_min), ha='center', va='bottom', fontsize=10.5) # 标出最低温度
|
|
|
|
plt.text(tem_min_date + 0.15, tem_min + 0.15, str(tem_min), ha='center', va='bottom', fontsize=10.5) # 标出最低温度
|
|
|
|
plt.xticks(x)
|
|
|
|
plt.xticks(x)
|
|
|
|
plt.title('未来14天高温低温变化曲线图')
|
|
|
|
plt.title('未来14天高温低温变化折线图')
|
|
|
|
plt.xlabel('未来天数/天')
|
|
|
|
plt.xlabel('未来天数/天')
|
|
|
|
plt.ylabel('摄氏度/℃')
|
|
|
|
plt.ylabel('摄氏度/℃')
|
|
|
|
plt.show()
|
|
|
|
plt.show()
|
|
|
|