Skip to content

Commit d78cfc1

Browse files
committed
Fix bottom limit of exponent and add comments for the new "SI extended" feature
1 parent c0ec891 commit d78cfc1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/plots/cartesian/axes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2070,7 +2070,7 @@ function beyondSI(exponent) {
20702070
}
20712071

20722072
function beyondSIExtended(exponent) {
2073-
return exponent > 32 || exponent < -32;
2073+
return exponent > 32 || exponent < -30;
20742074
}
20752075

20762076
function numFormat(v, ax, fmtoverride, hover) {

src/plots/cartesian/layout_attributes.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,12 @@ module.exports = {
908908
'If *E*, 1E+9.',
909909
'If *power*, 1x10^9 (with 9 in a super script).',
910910
'If *SI*, 1G.',
911-
'If *B*, 1B.'
911+
'If *B*, 1B.',
912+
913+
'*SI* uses prefixes from "femto" f (10^-15) to "tera" T (10^12).',
914+
'*SI extended* covers instead the full SI range from "quecto" q (10^-30) to "quetta" Q (10^30).',
915+
'If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule',
916+
'will automatically be switched to the power notation.'
912917
].join(' ')
913918
},
914919
minexponent: {

0 commit comments

Comments
 (0)