matplotlib가 인덱스를 x 축으로 사용하기 전에 필자가 원했던 것입니다.matplotlib 축을 올바르게 매핑하지 않습니다.
지금은 그렇지 않습니다. 이유가 무엇입니까?
Close Prediction
Date
2017-06-21 155.03 152.586975
2017-06-22 154.89 153.450424
2017-06-23 158.02 150.374527
2017-06-26 157.50 149.241684
2017-06-27 151.03 148.880630
당신은 팬더 플롯을 사용할 수
import matplotlib.pyplot as plt2
plt2.plot(joined['Prediction'], color='red', label='Prediction')
plt2.plot(joined['Close'], color='blue', label='Actual')
plt2.legend(loc='upper left')
plt2.show()
참조 [이 질문] (https://stackoverflow.com/questions/47404653/ pandas-0-21-0-timestamp-compatibility-issue-with-matplotlib) 및 링크가 포함되어 있습니다. – ImportanceOfBeingErnest