plotly - 显示为“n”、“p”或“f”的小数字
问题描述
我正在使用 plotly 绘制一些数据(小数字),我看到奇怪的格式,例如78.98p
, 576.65n
,678.76f
这些是什么F?:(关于这些是什么,任何地方都没有解释。
我怎样才能让他们用 E 说科学记数法?
解决方案
看到这个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.
推荐阅读
- typescript - 打字稿中的递归对象映射器类型
- r - 我在尝试创建混淆矩阵时遇到错误
- node.js - NodeJS Mongoose 可以从一个 linux 目录连接,但不能从另一个目录连接
- rust - 当用户登录而不使用 N+1 查询时,将数据添加到 Diesel 结果
- python - 寻找 Selenium 的替代品来抓取多个页面
- git - 每个目录的 Git 预提交挂钩
- c++ - 容器对象身份的平等而不是元素方面的平等
- java - Java 8 编译器插件:如何将扩展表达式添加到生成的类?
- python-3.x - Python Scraper 使用 BeautifulSoup '\n\n 问题
- bash - 输出的脚本使用