Skip to content

Commit

Permalink
Update some contour mocks
Browse files Browse the repository at this point in the history
Following 66e7b3c, set colorscale domain bounds for consistency
  • Loading branch information
lvlte committed Jun 3, 2023
1 parent fb7e181 commit ae34826
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/image/mocks/airfoil.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
"zmax":1,
"name":"Pressure",
"colorscale":"Viridis",
"zmin":-8,
"zmin":-1,
"colorbar":{
"y":0,
"yanchor":"bottom",
Expand Down
10 changes: 10 additions & 0 deletions test/image/mocks/contour_edge_cases.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
[0, 0, 0, -9, 0, 0],
[0, 0, 0, 0, 0, 0]],
"type": "contour",
"zmin": -0.000001,
"zmax": 0.000001,
"contours": {
"start": -0.000001,
"end": 0.000001,
Expand All @@ -55,6 +57,8 @@
[0, 0, 9, -9, 0, 0],
[0, 0, 0, 0, 0, 0]],
"type": "contour",
"zmin": -0.000001,
"zmax": 0.000001,
"contours": {
"start": -0.000001,
"end": 0.000001,
Expand Down Expand Up @@ -91,6 +95,8 @@
[0, 0, 0, 9, 0, 0],
[0, 0, 0, 0, 0, 0]],
"type": "contour",
"zmin": -0.000001,
"zmax": 0.000001,
"contours": {
"start": -0.0000005,
"end": 0.000001,
Expand All @@ -107,6 +113,8 @@
[0, 0, 0, 0, -9, 0],
[0, 0, 0, 0, 0, 0]],
"type": "contour",
"zmin": -0.000001,
"zmax": 0.000001,
"contours": {
"start": -0.0000005,
"end": 0.000001,
Expand All @@ -122,6 +130,8 @@
[0, 0, 0, 9, 0, 0],
[0, 0, 0, 0, 0, 0]],
"type": "contour",
"zmin": -0.000001,
"zmax": 0.000001,
"contours": {
"start": -0.0000005,
"end": 0.000001,
Expand Down
2 changes: 2 additions & 0 deletions test/image/mocks/contour_log.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
[6, 5, 4, 8, 2, 1],
[5, 4, 3, 2, 1, 0]
],
"zmin": 4,
"zmax": 6.5,
"contours": {"start": 4, "end": 6.5, "size": 1},
"type": "contour"
},
Expand Down
4 changes: 2 additions & 2 deletions test/image/mocks/contour_valid_ses.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
"end": 10,
"size": 1
},
"zmin": 0,
"zmax": 20
"zmin": 2,
"zmax": 10
}
],
"layout": {
Expand Down
2 changes: 1 addition & 1 deletion test/image/mocks/h-colorbar_airfoil.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
"zmax":1,
"name":"Pressure",
"colorscale":"Viridis",
"zmin":-8,
"zmin":-1,
"colorbar":{
"orientation": "h",
"x":0.75,
Expand Down
2 changes: 2 additions & 0 deletions test/image/mocks/histogram2dcontour_bingroup-coloraxis.json
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,8 @@
}
],
"coloraxis": {
"cmin": 0,
"cmax": 8.5,
"colorscale": [
[
0,
Expand Down
4 changes: 4 additions & 0 deletions test/image/mocks/shared_coloraxes_contour.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@
}
},
"coloraxis2": {
"cmin": -5.5,
"cmax": 4.5,
"colorbar": {
"dtick": 1,
"len": 0.5,
Expand All @@ -120,6 +122,8 @@
}
},
"coloraxis3": {
"cmin": -5.5,
"cmax": 4.5,
"colorbar": {
"len": 0.5,
"x": -0.05, "xanchor": "right",
Expand Down

0 comments on commit ae34826

Please sign in to comment.