0
在下面的表格中。情節,我想在x軸上繪製日期。我有日期的列表:matplotlib中x軸上的繪圖日期
import arrow as ar
date_plt = '2016-04-01'
_frst_day = '2016-01-01'
_last_day = '2016-12-31'
[ar.get(date_plt) + timedelta(days=x) for x in range((ar.get(_last_day) - ar.get(_frst_day)).days + 1)]
我怎樣才能在x軸上繪製日期,同時仍然能夠利用的情節線和點(如圖所示)
是什麼date_plt? – eyllanesc
謝謝@eyllanesc,更新的問題 – user308827