Skip to content

Commit

Permalink
Fix _np import
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Sep 16, 2024
1 parent 8a9ec73 commit edc1a61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sfs/plot2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit edc1a61

Please sign in to comment.