We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 484c66d commit 0187578Copy full SHA for 0187578
zndraw/viewer.py
@@ -47,12 +47,21 @@ class DashApp:
47
def update_layout(self):
48
"""Create a clean layout for the figure."""
49
self.fig.update_layout(showlegend=False)
50
+
51
+ # Default parameters which are used when `layout.scene.camera` is not provided
52
+ camera = {
53
+ "up": {"x": 0, "y": 0, "z": 1},
54
+ "center": {"x": 0, "y": 0, "z": 0},
55
+ "eye": {"x": 0.75, "y": 0.75, "z": 0.75},
56
+ }
57
58
self.fig.update_layout(
59
scene=dict(
60
xaxis=dict(visible=False),
61
yaxis=dict(visible=False),
62
zaxis=dict(visible=False),
- )
63
+ ),
64
+ scene_camera=camera,
65
)
66
67
def plot_atoms(self):
0 commit comments