From 9867aa80cad5e787c3411691f2a1e47934b43254 Mon Sep 17 00:00:00 2001 From: maclariz Date: Thu, 29 Aug 2024 16:15:07 +0100 Subject: [PATCH] Update polar_analysis.py Fixed ylim scaling issue in plot_background_fits --- py4DSTEM/process/polar/polar_analysis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py4DSTEM/process/polar/polar_analysis.py b/py4DSTEM/process/polar/polar_analysis.py index cc4cdfa73..7a7704866 100644 --- a/py4DSTEM/process/polar/polar_analysis.py +++ b/py4DSTEM/process/polar/polar_analysis.py @@ -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")