matplotlib.pyplot绘图函数显示不正确的点序列

时间:2019-03-13 11:23:35

标签: python matplotlib

我刚开始使用Python。来自核心R backgroud的Esp,这可能是个问题。 这是我的数据enter image description here

我只想要每个month_year值的日期值(简单的x-y图)。我尝试了这些选项- 1)

plt.plot(grouped_warning_data['month_year'], grouped_warning_data['date'])

2)

plt.figure()
plt.plot(grouped_warning_data['month_year'], grouped_warning_data['date'])

enter image description here

我不知道为什么序列(连接点)不正确。我应该改变什么?

0 个答案:

没有答案
相关问题