Skip to content

Commit

Permalink
Update polar_analysis.py
Browse files Browse the repository at this point in the history
Fixed ylim scaling issue in plot_background_fits
  • Loading branch information
maclariz authored Aug 29, 2024
1 parent 72195a4 commit 9867aa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py4DSTEM/process/polar/polar_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,8 @@ def plot_background_fits(
ax.set_ylabel("I(k) and Background Fit Estimates")
ax.set_ylim(
(
np.min(self.radial_mean[self.radial_mean > 0]) * 0.8,
np.max(self.radial_mean * self.Sk_mask) * 1.25,
np.min(Ik[Ik > 0]) * 0.8,
np.max(Ik * self.Sk_mask) * 1.25,
)
)
ax.set_yscale("log")
Expand Down

0 comments on commit 9867aa8

Please sign in to comment.