Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7171260

Browse filesBrowse files
committed
Add surface to gl3d mock
- adjust camera position in scene - use isosurface with a defined bound - reverse one of the colorscales
1 parent 0f86036 commit 7171260
Copy full SHA for 7171260

File tree

Expand file treeCollapse file tree

2 files changed

+20
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+20
-0
lines changed
8.33 KB
Loading

‎test/image/mocks/gl3d_coloraxes.json

Copy file name to clipboardExpand all lines: test/image/mocks/gl3d_coloraxes.json
+20Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,18 @@
112112
"k":[2, 3, 1, 3],
113113
"intensity": [0, 1, 2, 3],
114114
"coloraxis": "coloraxis"
115+
}, {
116+
"type": "surface",
117+
"x": [0, 1],
118+
"y": [2, 3],
119+
"z": [[3, 1], [2, 2]],
120+
"coloraxis": "coloraxis"
115121
},
116122

117123
{
118124
"type": "isosurface",
125+
"isomax": 0,
126+
"isomin": null,
119127
"value": [
120128
0, 125, 250, 375, 500, 625, 750, 875, 1000,
121129
-125, 0, 125, 250, 375, 500, 625, 750, 875,
@@ -485,6 +493,7 @@
485493
"coloraxis": "coloraxis2"
486494
}, {
487495
"type": "volume",
496+
"opacityscale": "min",
488497
"value": [
489498
1000.000, 866.025, 500.000, 0.000, -500.000, -866.025, -1000.000, -866.025, -500.000, -0.000, 500.000, 866.025, 1000.000,
490499
1500.000, 1366.025, 1000.000, 500.000, 0.000, -366.025, -500.000, -366.025, -0.000, 500.000, 1000.000, 1366.025, 1500.000,
@@ -1225,6 +1234,16 @@
12251234
"layout": {
12261235
"title": "gl3d trace with shared coloraxes",
12271236

1237+
"scene": {
1238+
"camera": {
1239+
"eye": {
1240+
"x": 0,
1241+
"y": 1.5,
1242+
"z": 0
1243+
}
1244+
}
1245+
},
1246+
12281247
"coloraxis": {
12291248
"colorscale": "Viridis",
12301249
"colorbar": {
@@ -1234,6 +1253,7 @@
12341253
},
12351254
"coloraxis2": {
12361255
"colorscale": "Viridis",
1256+
"reversescale": true,
12371257
"colorbar": {
12381258
"x": 1.1,
12391259
"xanchor": "left"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.