matplotlibのX軸に日付を指定したが、うまく表示されません。
どなたか解決方法を教えてください。
コード
# plot the Finonacci levesl plt.figure(figsize=(18.495,14.25)) plt.plot(new_df.index, new_df['Close'],color='black') plt.axhline(max_price, linestyle='--', alpha=0.5,color='green') plt.axhline(fist_level, linestyle='--', alpha=0.5,color='green') plt.axhline(secon_level, linestyle='--', alpha=0.5,color='green') plt.axhline(third_level, linestyle='--', alpha=0.5,color='green') plt.axhline(fourth_level, linestyle='--', alpha=0.5,color='green') plt.axhline(fifth_level, linestyle='--', alpha=0.5,color='green') plt.axhline(min_price, linestyle='--', alpha=0.5,color='green') plt.ylabel('Close Price in USD') plt.xlabel('Date') plt.xticks(rotation=45) plt.show()
new_df.indexの型はdatetime64[ns]です。
よろしくお願いいたします。

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。