Skip to content

Commit 3c1dc85

Browse files
author
Ralf Gommers
committed
Merge pull request scipy#5150 from andreas-kopecky/fix_misleading_cwt_example
DOC: fix misleading wavelets/cwt example
2 parents 0ee33cc + a49dd17 commit 3c1dc85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scipy/signal/wavelets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def cwt(data, wavelet, widths):
350350
>>> sig = np.cos(2 * np.pi * 7 * t) + signal.gausspulse(t - 0.4, fc=2)
351351
>>> widths = np.arange(1, 31)
352352
>>> cwtmatr = signal.cwt(sig, signal.ricker, widths)
353-
>>> plt.imshow(cwtmatr, extent=[-1, 1, 1, 31], cmap='PRGn', aspect='auto',
353+
>>> plt.imshow(cwtmatr, extent=[-1, 1, 31, 1], cmap='PRGn', aspect='auto',
354354
... vmax=abs(cwtmatr).max(), vmin=-abs(cwtmatr).max())
355355
>>> plt.show()
356356

0 commit comments

Comments
 (0)