Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small typo, docstring update, and fixed a bug. #706

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions py4DSTEM/process/diffraction/crystal_viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ def plot_structure(
returnfig: bool = False,
):
"""
Quick 3D plot of the untit cell /atomic structure.
Quick 3D plot of the unit cell/atomic structure.

Args:
orientation_matrix (array): (3,3) orientation matrix, where columns represent projection directions.
zone_axis_lattice (array): (3,) projection direction in lattice indices
proj_x_lattice (array): (3,) x-axis direction in lattice indices
zone_axis_cartesian (array): (3,) cartesian projection direction
proj_x_cartesian (array): (3,) cartesian projection direction
scale_markers (float): Size scaling for markers
size_marker (float): Size scaling for markers
tol_distance (float): Tolerance for repeating atoms on edges on cell boundaries.
plot_limit (float): (2,3) numpy array containing x y z plot min and max in columns.
Default is 1.1* unit cell dimensions.
Expand Down Expand Up @@ -150,7 +150,7 @@ def plot_structure(

# atoms
ID_all = np.unique(ID)
if occ is None:
if np.all(np.asarray(occ) == 1):
for ID_plot in ID_all:
sub = ID == ID_plot
ax.scatter(
Expand All @@ -166,7 +166,7 @@ def plot_structure(
# init
tol = 1e-4
num_seg = 180
radius = 0.7
radius = size_marker / 800
zp = np.zeros(num_seg + 1)

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