Skip to content

Commit

Permalink
DOC reference to matplotlib issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Till Rettberg authored and hagenw committed Mar 14, 2018
1 parent 61bb155 commit 8023d6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sfs/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ def soundfield(p, grid, xnorm=None, cmap='coolwarm_clip', vmin=-2.0, vmax=2.0,
if ax is None:
ax = plt.gca()

# see https://github.com/matplotlib/matplotlib/issues/10567
if matplotlib_version.startswith('2.1.'):
p = np.clip(p, -1e15, 1e15) # clip to float64 range

Expand Down

0 comments on commit 8023d6e

Please sign in to comment.