matplotlib - 如何在 matploblib 中指定分类单位
问题描述
我有一些看起来像这样的代码:
ax.bar(x, y, label=label, alpha=0.5)
问题是它会INFO
向我的日志发出这种烦人的东西,并且(我认为)有时会更改我的标签。这很烦人,因为它位于更大程序的内部循环中。我宁愿不抑制 matploblib 消息,因为我是新手,不想错过任何东西。
Using categorical units to plot a list of strings that are all parsable as floats or dates. If these strings should be plotted as numbers, cast to the appropriate data type before plotting.
有没有办法告诉 matplotlib 不要更改我的标签或警告我,即使它们看起来像数字(即,不更改我的标签)?
解决方案
推荐阅读
- statistics - 统计数据:在一组中找到它们之间相关的对的捷径
- javascript - 使用应用内浏览器进行客户端下载
- php - OneLogin 和 Azure AD SAML 请求无效
- kubernetes - K8s - NFS 共享仅以只读方式挂载在 pod 中
- pine-script - 我需要我的策略来检查 80 个之前的柱的标准 x
- apache-spark - 无法创建 hive 连接 jdbc:hive2://localhost:10000。集群模式下的 spark-submit
- javascript - 在JS中的另一个函数中使用函数根据布尔值更改颜色
- prometheus - 打开查询日志文件时出错”file=/prometheus/queries.active err="open /prometheus/queries.active: 权限被拒绝
- talend - 存档不是 TOS for Bigdata(6.3 和 7.3)中的 ZIP 存档
- ffmpeg - ffmpeg flac 或 mp3 到 m4a - 长度可能完全相同?