Skip to content

Commit edc1a61

Browse files
committed
Fix _np import
1 parent 8a9ec73 commit edc1a61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sfs/plot2d.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ def amplitude(p, grid, *, xnorm=None, cmap='coolwarm_clip',
289289
elif plotting_plane == 'yz':
290290
x, y = grid[[1, 2]]
291291

292-
dx = 0.5 * np.ptp(x) / p.shape[0]
293-
dy = 0.5 * np.ptp(y) / p.shape[1]
292+
dx = 0.5 * _np.ptp(x) / p.shape[0]
293+
dy = 0.5 * _np.ptp(y) / p.shape[1]
294294

295295
if ax is None:
296296
ax = _plt.gca()

0 commit comments

Comments
 (0)