0
我有日期索引和溫度的數據幀值:的Python matplotlib不顯示鼠標懸停全日
Date Temperature
2015-10-21 9.118
2015-10-22 9.099
2015-10-23 8.945
2015-10-26 8.848
2015-10-27 8.848
2015-10-28 8.829
2015-10-30 8.935
2015-11-02 9.302
2015-11-03 9.012
2015-11-04 9.109
...
2017-10-16 10.160
2017-10-17 10.180
2017-10-18 10.140
2017-10-19 10.370
2017-10-20 10.360
使用交互式%matplotlib筆記本繪製它顯示的溫度,年/月在右下角,但省略了當天。
#%matplotlib notebook
import pandas as pd
import matplotlib.pyplot as plt
x_axis = df.index.tolist()
y_axis = df['temperature'].tolist()
plt.plot(x_axis, y_axis)
plt.show()
我怎樣才能得到它顯示的一天嗎?任何格式都可以,但最好是'01-Jan-2017'。