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 45fd038 commit fa34ca1Copy full SHA for fa34ca1
structuretoolkit/visualize.py
@@ -164,7 +164,7 @@ def _get_box_skeleton(cell: np.ndarray):
164
# All 12 two-point lines on the unit square
165
return all_lines @ cell
166
167
-def _draw_box_plotly(fig, structure):
+def _draw_box_plotly(fig, structure, px):
168
cell = get_cell(structure)
169
data = fig.data
170
for lines in _get_box_skeleton(cell):
@@ -231,7 +231,7 @@ def _plot3d_plotly(
231
),
232
)
233
if show_cell:
234
- fig = _draw_box_plotly(fig, structure)
+ fig = _draw_box_plotly(fig, structure, px)
235
fig.layout.scene.camera.projection.type = camera
236
rot = _get_orientation(view_plane).T
237
rot[0, :] *= distance_from_camera * 1.25
0 commit comments