Python 是否有一种方法可以在散点图中以相等的间隔进行可视化,跳过月份的第一个日期与间隔冲突

Python 是否有一种方法可以在散点图中以相等的间隔进行可视化,跳过月份的第一个日期与间隔冲突,python,matplotlib,scatter-plot,Python,Matplotlib,Scatter Plot,我编写了这段代码用于可视化 ax = self.figure4.add_subplot(111) ax.clear() ax.scatter(dmy_yo.values, pred_val, color='blue', marker='+', label='FuturePredicted') ax.set_title('Future Date vs ErrorID (Future Prediction)') ax.set_xlabel('Future Date') ax.set_ylabe

我编写了这段代码用于可视化

ax = self.figure4.add_subplot(111)
ax.clear()
ax.scatter(dmy_yo.values, pred_val, color='blue', marker='+', 
label='FuturePredicted')  
ax.set_title('Future Date vs ErrorID (Future Prediction)')
ax.set_xlabel('Future Date')
ax.set_ylabel('Future ErrorID')
self.canvas4.draw()
我试过使用它

ax.xaxis.set_major_locator()
但是我不能正确地使用它

    ax.clear()
    ax.scatter(dmy_yo.values, pred_val, color='blue', marker='+', 
    label='FuturePredicted')  
    ax.set_title('Future Date vs ErrorID (Future Prediction)')
    ax.set_xlabel('Future Date')
    ax.set_ylabel('Future ErrorID')
    self.canvas4.draw()

我希望结果应该是,间隔应该在x轴上平均分开。但在每个月的第一天,间隔时间会中断。

问题与机器学习或jupyter笔记本无关-请不要发送不相关的标签(已删除)。请尝试提供一个清晰的答案。问题与
机器学习
jupyter笔记本
无关-请不要发送不相关的标签(已删除)。请尝试提供一个清晰的答案。