Skip to content

Commit c8c8646

Browse files
authored
Small typo, docstring update, and fixed a bug.
1 parent a68396b commit c8c8646

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

py4DSTEM/process/diffraction/crystal_viz.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ def plot_structure(
3434
returnfig: bool = False,
3535
):
3636
"""
37-
Quick 3D plot of the untit cell /atomic structure.
37+
Quick 3D plot of the unit cell/atomic structure.
3838
3939
Args:
4040
orientation_matrix (array): (3,3) orientation matrix, where columns represent projection directions.
4141
zone_axis_lattice (array): (3,) projection direction in lattice indices
4242
proj_x_lattice (array): (3,) x-axis direction in lattice indices
4343
zone_axis_cartesian (array): (3,) cartesian projection direction
4444
proj_x_cartesian (array): (3,) cartesian projection direction
45-
scale_markers (float): Size scaling for markers
45+
size_marker (float): Size scaling for markers
4646
tol_distance (float): Tolerance for repeating atoms on edges on cell boundaries.
4747
plot_limit (float): (2,3) numpy array containing x y z plot min and max in columns.
4848
Default is 1.1* unit cell dimensions.
@@ -166,7 +166,7 @@ def plot_structure(
166166
# init
167167
tol = 1e-4
168168
num_seg = 180
169-
radius = 0.7
169+
radius = size_marker/800
170170
zp = np.zeros(num_seg + 1)
171171

172172
mark = np.ones(xyz.shape[0], dtype="bool")

0 commit comments

Comments
 (0)