Fix missing parameter initialization in Axes.specgram() by Stefan-Mitic · Pull Request #16947 · matplotlib/matplotlib · GitHub
Skip to content

Fix missing parameter initialization in Axes.specgram() - #16947

Merged
timhoffm merged 5 commits into
matplotlib:masterfrom
Stefan-Mitic:issue/9100
Apr 2, 2020
Merged

timhoffm merged 5 commits into
matplotlib:masterfrom
Stefan-Mitic:issue/9100

Conversation

@Stefan-Mitic

@Stefan-Mitic Stefan-Mitic commented Mar 28, 2020

Copy link
Copy Markdown
Contributor

PR Summary

Added check to set Fs in _axes.specgram() to be Fs = freq[-1] * 2.
Added a test to test_axes.py to check if Fs is None that it won't throw an error.

Closes #9100

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

Comment thread lib/matplotlib/tests/test_axes.py Outdated

@tacaswell tacaswell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

modulo fixing the style issue.

@tacaswell

Copy link
Copy Markdown
Member

@tacaswell tacaswell added this to the v3.3.0 milestone Mar 30, 2020
Comment thread lib/matplotlib/axes/_axes.py Outdated
@timhoffm timhoffm changed the title solution: docstring of parameter Fs of matplotlib.pyplot.specgram() inconsistent with default value #9100 Fix missing parameter initialization in Axes.specgram() Mar 31, 2020
@Stefan-Mitic
Stefan-Mitic requested a review from timhoffm April 1, 2020 23:00
Comment thread lib/matplotlib/tests/test_axes.py Outdated
@Stefan-Mitic
Stefan-Mitic requested a review from timhoffm April 2, 2020 17:58
@timhoffm
timhoffm merged commit 97d9cd1 into matplotlib:master Apr 2, 2020
@timhoffm

timhoffm commented Apr 2, 2020

Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parameter Fs initialization missing in Axes.specgram()

3 participants