Skip to content

Commit 746d569

Browse files
Update _cwt.py
Fix doctest error
1 parent 8996c80 commit 746d569

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pywt/_cwt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def cwt(data, scales, wavelet, sampling_period=1., method='conv', axis=-1, preci
114114
>>> t = np.linspace(-1, 1, 200, endpoint=False)
115115
>>> sig = np.cos(2 * np.pi * 7 * t) + np.real(np.exp(-7*(t-0.4)**2)*np.exp(1j*2*np.pi*2*(t-0.4)))
116116
>>> widths = np.logspace(np.log10(1), np.log10(30), 30)
117-
>>> cwtmatr, freqs = pywt.cwt(sig, widths, 'mexh', , hop_size=128)
117+
>>> cwtmatr, freqs = pywt.cwt(sig, widths, 'mexh', hop_size=128)
118118
>>> plt.imshow(cwtmatr, extent=[-1, 1, 1, 31], cmap='PRGn', aspect='auto',
119119
... vmax=abs(cwtmatr).max(), vmin=-abs(cwtmatr).max())
120120
>>> plt.show()

0 commit comments

Comments
 (0)