Skip to content

Commit e45d228

Browse files
committed
Fix importing matplotlib whitch is not in pyproject.toml
1 parent 7693c3b commit e45d228

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, fs, f0=0, f1=0, fn=0, nthreads=1, scaling="lin", fast=False, norm=True):
36+
import matplotlib.pyplot as plt
3737

3838
f0 = f0 if f0 else 1/(input.size/fs)
3939
f1 = f1 if f1 else fs/2

0 commit comments

Comments
 (0)