Skip to content

Commit

Permalink
Display matplolib import error
Browse files Browse the repository at this point in the history
  • Loading branch information
MonsieurV committed Nov 5, 2018
1 parent 19afa49 commit b4e3106
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ def plot_peaks(x, indexes, algorithm=None, mph=None, mpd=None):
"""Plot results of the peak dectection."""
try:
import matplotlib.pyplot as plt
except ImportError:
print('matplotlib is not available.')
except ImportError as e:
print('matplotlib is not available.', e)
return
_, ax = plt.subplots(1, 1, figsize=(8, 4))
ax.plot(x, 'b', lw=1)
Expand Down

0 comments on commit b4e3106

Please sign in to comment.