所以我有這個區域溫度資料集。
它有很多年的每日資料(例如 1998-7-12、2005-4-12),所以當我用 x 作為時間繪制它時,x-lables 重疊,如果我旋轉它們,它們仍然重疊。
我的代碼如下所示:
import matplotlib.pyplot as plt
import pandas as pd
sheet = pd.read_csv('sheet.csv')
x = sheet['T']
y = sheet['F']
yerror = sheet['E']
plt.title('BHF')
plt.errorbar(x,y,yerr=yerror, fmt='o', elinewidth=1)
plt.grid(linestyle=':')
plt.show()
它看起來像這樣:

轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/512070.html
