会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
麦 扣
——吾生有涯而知无涯,以有涯逐无涯,乐此不倦
博客园
首页
新随笔
联系
订阅
管理
2021年12月31日
matplotlib画图X轴数据太多(例如时间)如何只显示一部分
摘要: from matplotlib import ticker plt.plot(train['first_active_month'].value_counts().sort_index()) # 参数为间隔数量 plt.gca().xaxis.set_major_locator(ticker.Mul
阅读全文
posted @ 2021-12-31 10:28 麦扣
阅读(1943)
评论(0)
推荐(0)
编辑
公告