Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Corrected default values of xextent in specgram(). Fixes Bug #7666. #7692

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 29, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Beautified Variable name
  • Loading branch information
DietBru committed Dec 28, 2016
commit c3a85746b63fa54883becd65ea19bcbd620c9c66
4 changes: 2 additions & 2 deletions 4 lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -7230,8 +7230,8 @@ def specgram(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,

if xextent is None:
# padding is needed for first and last segment:
pad_xextnt = (NFFT-noverlap) / Fs / 2
xextent = np.min(t) - pad_xextnt, np.max(t) + pad_xextnt
pad_xextent = (NFFT-noverlap) / Fs / 2
xextent = np.min(t) - pad_xextent, np.max(t) + pad_xextent
xmin, xmax = xextent
freqs += Fc
extent = xmin, xmax, freqs[0], freqs[-1]
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.