Skip to content

Commit c1bc925

Browse files
committed
fix plot_freq trying to plot infinite values in Bartlett demo
1 parent ccc315c commit c1bc925

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Changes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{{$NEXT}}
22

3+
- fix plot_freq trying to plot infinite values in Bartlett demo
4+
35
0.102 2024-09-15 20:45:44 BST
46

57
- list_windows now returns a list, not print to selected filehandle

lib/PDL/DSP/Windows.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ sub plot_freq {
787787
my @args = (
788788
with => 'lines',
789789
$coordinates,
790-
20 * PDL::Ops::log10($mf),
790+
(20 * $mf->log10)->setinftobad,
791791
{ title => $title,
792792
xrange => [-$coordinate_range,$coordinate_range],
793793
xlabel => $xlab,

0 commit comments

Comments
 (0)