Skip to content

Commit

Permalink
Update src/osyris/plot/wrappers.py
Browse files Browse the repository at this point in the history
Co-authored-by: Neil Vaytet <[email protected]>
  • Loading branch information
Adnan-Ali-Ahmad and nvaytet authored Jun 9, 2023
1 parent f29db5e commit b01bd0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osyris/plot/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def quiver(ax,
default_args = {"angles": "xy", "pivot": "mid", "zorder": zorder}
default_args.update(kwargs)

skips = np.around(np.array(z.shape) * 4.0 / 128.0 / density).astype(np.int_)
skips = np.around(np.array(z.shape) * 4.0 / 128.0 / density).astype(int)
skip = (slice(None, None, skips[0]), slice(None, None, skips[1]))

args = [x[skip[0]], y[skip[1]], z[..., 0][skip], z[..., 1][skip]]
Expand Down

0 comments on commit b01bd0e

Please sign in to comment.