首页 > 解决方案 > 显示为“n”、“p”或“f”的小数字

问题描述

我正在使用 plotly 绘制一些数据(小数字),我看到奇怪的格式,例如78.98p, 576.65n,678.76f

这些是什么F?:(关于这些是什么,任何地方都没有解释。

我怎样才能让他们用 E 说科学记数法?

标签: plotlyplotly.jsplotly-python

解决方案


看到这个https://plot.ly/python/reference/#parcoords-line-colorbar-exponentformat

exponentformat ( enumerated : "none" | "e" | "E" | "power" | "SI" | "B" ) 
default: "B" 
Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B.

推荐阅读