From edc1a614101a45ce19c094133c693bcb4ec6d180 Mon Sep 17 00:00:00 2001 From: Hagen Wierstorf Date: Mon, 16 Sep 2024 16:55:35 +0200 Subject: [PATCH] Fix _np import --- sfs/plot2d.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sfs/plot2d.py b/sfs/plot2d.py index 47f41a5..63f6996 100644 --- a/sfs/plot2d.py +++ b/sfs/plot2d.py @@ -289,8 +289,8 @@ def amplitude(p, grid, *, xnorm=None, cmap='coolwarm_clip', elif plotting_plane == 'yz': x, y = grid[[1, 2]] - dx = 0.5 * np.ptp(x) / p.shape[0] - dy = 0.5 * np.ptp(y) / p.shape[1] + dx = 0.5 * _np.ptp(x) / p.shape[0] + dy = 0.5 * _np.ptp(y) / p.shape[1] if ax is None: ax = _plt.gca()