Skip to content

Commit

Permalink
testing fix for drawing legend
Browse files Browse the repository at this point in the history
  • Loading branch information
cophus committed Jul 18, 2024
1 parent 0ecf427 commit 564999c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py4DSTEM/process/diffraction/crystal_viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -1416,8 +1416,8 @@ def plot_orientation_maps(
# Triangulate faces
p = self.orientation_vecs[:, (1, 0, 2)]
tri = mtri.Triangulation(
self.orientation_inds[:, 1] - self.orientation_inds[:, 0] * 1e-3,
self.orientation_inds[:, 0] - self.orientation_inds[:, 1] * 1e-3,
self.orientation_inds[:, 1].astype('float') - self.orientation_inds[:, 0].astype('float') * 1e-3,
self.orientation_inds[:, 0].astype('float') - self.orientation_inds[:, 1].astype('float') * 1e-3,
)
# convert rgb values of pixels to faces
rgb_faces = (
Expand Down

0 comments on commit 564999c

Please sign in to comment.