【发布时间】:2013-11-22 00:31:57
【问题描述】:
我想在 python 2.7 中使用 matplotlib 格式化我的 y 轴。这是我尝试过的:
ax.yaxis.get_major_formatter().set_useLocale()
使用. 作为千位分隔符来格式化我的 y 轴。我不想拥有10000,而是拥有10.000,等等......但我找不到任何关于它如何工作的例子......
我找不到文档,在此页面上没有示例或进一步的文档:http://matplotlib.org/api/ticker_api.html#matplotlib.ticker.ScalarFormatter.set_useLocale
或者关于如何格式化我的轴的任何其他想法?
谢谢
【问题讨论】:
-
你可以这样做:tiku.io/questions/1009459/…
标签: python matplotlib locale axis