Skip to content

Commit 39983bb

Browse files
committed
Fix importing matplotlib whitch is not in pyproject.toml
1 parent 49cb5a9 commit 39983bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fcwt/boilerplate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from .fcwt import Morlet, Scales, FCWT, FCWT_LINSCALES, FCWT_LOGSCALES, FCWT_LINFREQS
22
import numpy as np
3-
import matplotlib.pyplot as plt
43

54
def cwt(input, fs, f0, f1, fn, nthreads=1, scaling="lin", fast=False, norm=True):
65

@@ -34,6 +33,7 @@ def cwt(input, fs, f0, f1, fn, nthreads=1, scaling="lin", fast=False, norm=True)
3433
return freqs, output
3534

3635
def _plot(input, freqs, output, fs, f0, f1, fn):
36+
import matplotlib.pyplot as plt
3737

3838
#create two subplots
3939
fig, (ax1, ax2) = plt.subplots(2, 1, sharex=True)

0 commit comments

Comments
 (0)