python - 线型图看不到 x 轴标签
问题描述
我正在测试一个非常简单的练习,只需绘制下面的代码:
t = pd.Series([1,2,5,1,8], index=['a', 's', 'l', 'f', 'd' ])
t.plot(linestyle = '-', color = 'b', sharex = True)
但我看不到字母a
, s
, l
,f
和d
.
有什么建议么?
解决方案
推荐阅读
- go - 为什么这个 goroutine 的行为就像是通过引用调用?
- logging - Logstash 从 4 个不同的模式日志中提取字段到单个文档中
- pdf - 合并多个 PDF 并将外部链接转换为本地
- node.js - $lookup 聚合运算符的空数组输出
- python - 在 Tensorflow 中沿指定维度恰好选择一个元素
- ruby-on-rails - Active Storage 以单独的方式为每条记录存储多个附件?
- javascript - 如何通过代码拼写检查将所有未知单词添加到字典中,或者当语言不是英语时忽略它们?
- node.js - 错误:使用原子查询时在 Postgres 中检测到死锁
- linux - 努力连接到 ubuntu/linux 中的 postgres-12 数据库服务器
- java - Java Swing 的 TableModel getValueAt 职责