Skip to content

Commit f427d8a

Browse files
authored
Merge pull request #5170 from plotly/add-tests-some-v1.56.0-features
Adjust one new mock
2 parents 2cce0e9 + 35de722 commit f427d8a

File tree

2 files changed

+68
-17
lines changed

2 files changed

+68
-17
lines changed
Loading

test/image/mocks/gl3d_surface-heatmap-treemap_transparent-colorscale.json

+68-17
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,37 @@
5959
"Uniform",
6060
"Uniform"
6161
],
62-
"level": "Juliet",
62+
"branchvalues": "total",
63+
"values": [
64+
40000,
65+
2000,
66+
38000,
67+
1500,
68+
2500,
69+
34000,
70+
1000,
71+
2000,
72+
3000,
73+
28000,
74+
1250,
75+
1750,
76+
2250,
77+
2750,
78+
20000,
79+
1000,
80+
1500,
81+
2000,
82+
2500,
83+
3000,
84+
10000,
85+
1000,
86+
1500,
87+
2000,
88+
2500,
89+
3000
90+
],
91+
"sort": false,
92+
"level": "Oscar",
6393
"count": "leaves+branches",
6494
"textinfo": "label",
6595
"insidetextorientation": "horizontal",
@@ -69,7 +99,7 @@
6999
},
70100
"colorscale": [
71101
[0, "rgba(0,0,255,1)"],
72-
[0.5, "rgba(0,255,0,0.0)"],
102+
[0.5, "rgba(0,255,0,0.25)"],
73103
[1, "rgba(255,0,0,1)"]
74104
],
75105
"showscale": false
@@ -87,13 +117,13 @@
87117
"show": true
88118
}
89119
},
90-
"x": [0, 0.25, 0.5, 0.75, 1],
91-
"y": [0, 0.25, 0.5, 0.75, 1],
120+
"x": [0, 2000, 4000, 6000, 8000],
121+
"y": [0, 2000, 4000, 6000, 8000],
92122
"z": [
93123
[0, 0, 0, 0, 0],
94-
[0, 0.1, 0.8, 0.7, 0],
95-
[0, 0.2, 0, 0.6, 0],
96-
[0, 0.3, 0.4, 0.5, 0],
124+
[0, 500, 4000, 3500, 0],
125+
[0, 1000, 0, 3000, 0],
126+
[0, 1500, 2000, 2500, 0],
97127
[0, 0, 0, 0, 0]
98128
]
99129
},
@@ -105,13 +135,13 @@
105135
"show": true
106136
}
107137
},
108-
"x": [0, 0.25, 0.5, 0.75, 1],
109-
"y": [0, 0.25, 0.5, 0.75, 1],
138+
"x": [0, 2000, 4000, 6000, 8000],
139+
"y": [0, 2000, 4000, 6000, 8000],
110140
"z": [
111141
[0, 0, 0, 0, 0],
112-
[0, 0.1, 0.8, 0.7, 0],
113-
[0, 0.2, 0, 0.6, 0],
114-
[0, 0.3, 0.4, 0.5, 0],
142+
[0, 500, 4000, 3500, 0],
143+
[0, 1000, 0, 3000, 0],
144+
[0, 1500, 2000, 2500, 0],
115145
[0, 0, 0, 0, 0]
116146
]
117147
}
@@ -120,14 +150,17 @@
120150
"width": 1000,
121151
"height": 350,
122152
"title": {
123-
"text": "treemap, heatmap & surface plots with transparent colorscale"
153+
"text": "treemap, heatmap & surface plots with transparent colorscale and engineering formatting"
124154
},
125155
"coloraxis": {
126156
"colorscale": [
127157
[0, "rgba(0,0,255,1)"],
128-
[0.5, "rgba(0,255,0,0.0)"],
158+
[0.5, "rgba(0,255,0,0.25)"],
129159
[1, "rgba(255,0,0,1)"]
130-
]
160+
],
161+
"colorbar": {
162+
"minexponent": 0
163+
}
131164
},
132165
"margin": {
133166
"t": 75,
@@ -136,17 +169,35 @@
136169
"b": 25
137170
},
138171
"xaxis": {
139-
"domain": [0.35, 0.65]
172+
"domain": [0.35, 0.65],
173+
"minexponent": 0,
174+
"dtick": 2000
175+
},
176+
"yaxis": {
177+
"minexponent": 0,
178+
"dtick": 2000
140179
},
141180
"scene": {
181+
"xaxis": {
182+
"minexponent": 0,
183+
"dtick": 2000
184+
},
185+
"yaxis": {
186+
"minexponent": 0,
187+
"dtick": 2000
188+
},
189+
"zaxis": {
190+
"minexponent": 0,
191+
"dtick": 2000
192+
},
142193
"domain": {
143194
"x": [0.7, 1]
144195
},
145196
"camera": {
146197
"eye": {
147198
"x": 0,
148199
"y": 0,
149-
"z": 2
200+
"z": 2.1
150201
},
151202
"up": {
152203
"x": 0,

0 commit comments

Comments
 (0)