本文简要介绍 python 语言中 matplotlib.ticker.EngFormatter.format_eng
的用法。
-
用工程记数法格式化一个数字,附加一个代表原始数字的 1000 次方的字母。一些例子:
>>> format_eng(0) # for self.places = 0 '0'
>>> format_eng(1000000) # for self.places = 1 '1.0 M'
>>> format_eng(-1e-6) # for self.places = 2 '-1.00 µ'
用法
format_eng(num)
相关用法
- Python matplotlib EventCollection.sticky_edges用法及代码示例
- Python matplotlib EventCollection.set_hatch用法及代码示例
- Python matplotlib EllipseCollection.set_hatch用法及代码示例
- Python matplotlib EllipseCollection.sticky_edges用法及代码示例
- Python matplotlib axvspan用法及代码示例
- Python matplotlib Axes.get_legend_handles_labels用法及代码示例
- Python matplotlib AbstractMovieWriter用法及代码示例
- Python matplotlib triplot用法及代码示例
- Python matplotlib StarPolygonCollection.set_hatch用法及代码示例
- Python matplotlib Axes.hist用法及代码示例
- Python matplotlib boxplot用法及代码示例
- Python matplotlib subplots用法及代码示例
- Python matplotlib InsetPosition用法及代码示例
- Python matplotlib ToolManager.toolmanager_disconnect用法及代码示例
- Python matplotlib Figure.set_size_inches用法及代码示例
- Python matplotlib figlegend用法及代码示例
- Python matplotlib Axes.step用法及代码示例
- Python matplotlib Axes.contour用法及代码示例
- Python matplotlib LassoSelector用法及代码示例
- Python matplotlib BrokenBarHCollection.set_hatch用法及代码示例
- Python matplotlib Axes.plot用法及代码示例
- Python matplotlib Axes.semilogx用法及代码示例
- Python matplotlib Axes.semilogy用法及代码示例
- Python matplotlib MovieWriterRegistry.register用法及代码示例
- Python matplotlib PolyQuadMesh.set_hatch用法及代码示例
注:本文由纯净天空筛选整理自skytowner.com大神的英文原创作品 matplotlib.ticker.EngFormatter.format_eng。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。