Skip to content

Commit e056ceb

Browse files
committed
set exponenformat to 'B' in contour label mock axis object
- to prevent faulty fallback in Axes.prepTicks and Axis.tickText
1 parent 5cfc6b1 commit e056ceb

File tree

3 files changed

+52
-1
lines changed

3 files changed

+52
-1
lines changed

src/traces/contour/plot.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,8 @@ exports.labelFormatter = function(contours, colorbar, fullLayout) {
408408
formatAxis = {
409409
type: 'linear',
410410
_id: 'ycontour',
411-
showexponent: 'all'
411+
showexponent: 'all',
412+
exponentformat: 'B'
412413
};
413414

414415
if(contours.type === 'constraint') {
Loading
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"data": [{
3+
"type": "contour",
4+
"colorscale": [
5+
[0, "rgb(0,32,255)"],
6+
[1, "rgb(0,32,255)"]
7+
],
8+
"contours": {
9+
"coloring": "lines",
10+
"start": 3545.44829464,
11+
"end": 9774,
12+
"size": 100,
13+
"showlabels": true,
14+
"labelfont": {
15+
"color": "black",
16+
"family": "Raleway",
17+
"size": 14
18+
}
19+
},
20+
"showscale": false,
21+
"y": [
22+
30000,
23+
63333.3333333,
24+
30000,
25+
63333.3333333
26+
],
27+
"x": [
28+
10000,
29+
10000,
30+
25000,
31+
25000
32+
],
33+
"line": {
34+
"dash": "solid"
35+
},
36+
"z": [
37+
3545.44829464,
38+
5401.29856219,
39+
4287.07467078,
40+
6254.05596683
41+
]
42+
}],
43+
"layout": {
44+
"title": "in_Fz_tar = f(in_Fy_tar)",
45+
"margin": {"r": 80},
46+
"legend": {
47+
"font": {"size": 9}
48+
}
49+
}
50+
}

0 commit comments

Comments
 (0)