Skip to content

Commit ae34826

Browse files
committed
Update some contour mocks
Following 66e7b3c, set colorscale domain bounds for consistency
1 parent fb7e181 commit ae34826

7 files changed

+22
-4
lines changed

test/image/mocks/airfoil.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
"zmax":1,
212212
"name":"Pressure",
213213
"colorscale":"Viridis",
214-
"zmin":-8,
214+
"zmin":-1,
215215
"colorbar":{
216216
"y":0,
217217
"yanchor":"bottom",

test/image/mocks/contour_edge_cases.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
[0, 0, 0, -9, 0, 0],
3939
[0, 0, 0, 0, 0, 0]],
4040
"type": "contour",
41+
"zmin": -0.000001,
42+
"zmax": 0.000001,
4143
"contours": {
4244
"start": -0.000001,
4345
"end": 0.000001,
@@ -55,6 +57,8 @@
5557
[0, 0, 9, -9, 0, 0],
5658
[0, 0, 0, 0, 0, 0]],
5759
"type": "contour",
60+
"zmin": -0.000001,
61+
"zmax": 0.000001,
5862
"contours": {
5963
"start": -0.000001,
6064
"end": 0.000001,
@@ -91,6 +95,8 @@
9195
[0, 0, 0, 9, 0, 0],
9296
[0, 0, 0, 0, 0, 0]],
9397
"type": "contour",
98+
"zmin": -0.000001,
99+
"zmax": 0.000001,
94100
"contours": {
95101
"start": -0.0000005,
96102
"end": 0.000001,
@@ -107,6 +113,8 @@
107113
[0, 0, 0, 0, -9, 0],
108114
[0, 0, 0, 0, 0, 0]],
109115
"type": "contour",
116+
"zmin": -0.000001,
117+
"zmax": 0.000001,
110118
"contours": {
111119
"start": -0.0000005,
112120
"end": 0.000001,
@@ -122,6 +130,8 @@
122130
[0, 0, 0, 9, 0, 0],
123131
[0, 0, 0, 0, 0, 0]],
124132
"type": "contour",
133+
"zmin": -0.000001,
134+
"zmax": 0.000001,
125135
"contours": {
126136
"start": -0.0000005,
127137
"end": 0.000001,

test/image/mocks/contour_log.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
[6, 5, 4, 8, 2, 1],
1212
[5, 4, 3, 2, 1, 0]
1313
],
14+
"zmin": 4,
15+
"zmax": 6.5,
1416
"contours": {"start": 4, "end": 6.5, "size": 1},
1517
"type": "contour"
1618
},

test/image/mocks/contour_valid_ses.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
"end": 10,
4646
"size": 1
4747
},
48-
"zmin": 0,
49-
"zmax": 20
48+
"zmin": 2,
49+
"zmax": 10
5050
}
5151
],
5252
"layout": {

test/image/mocks/h-colorbar_airfoil.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
"zmax":1,
217217
"name":"Pressure",
218218
"colorscale":"Viridis",
219-
"zmin":-8,
219+
"zmin":-1,
220220
"colorbar":{
221221
"orientation": "h",
222222
"x":0.75,

test/image/mocks/histogram2dcontour_bingroup-coloraxis.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,8 @@
655655
}
656656
],
657657
"coloraxis": {
658+
"cmin": 0,
659+
"cmax": 8.5,
658660
"colorscale": [
659661
[
660662
0,

test/image/mocks/shared_coloraxes_contour.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@
112112
}
113113
},
114114
"coloraxis2": {
115+
"cmin": -5.5,
116+
"cmax": 4.5,
115117
"colorbar": {
116118
"dtick": 1,
117119
"len": 0.5,
@@ -120,6 +122,8 @@
120122
}
121123
},
122124
"coloraxis3": {
125+
"cmin": -5.5,
126+
"cmax": 4.5,
123127
"colorbar": {
124128
"len": 0.5,
125129
"x": -0.05, "xanchor": "right",

0 commit comments

Comments
 (0)