Parameter Fs initialization missing in Axes.specgram() · Issue #9100 · matplotlib/matplotlib · GitHub
Skip to content

Parameter Fs initialization missing in Axes.specgram() #9100

Description

@andreh7

Bug report

Bug summary

the docstring of parameter Fs of matplotlib.pyplot.specgram() says that the default value is 2 but the default value in the function signature is None.

Code for reproduction

point your browser to https://matplotlib.org/devdocs/api/_as_gen/matplotlib.pyplot.specgram.html or do:

import matplotlib.pyplot as plt
help(plt.specgram)

Actual outcome

specgram(x, NFFT=None, Fs=None, Fc=None, ...
...
Fs : scalar
        The sampling frequency (samples per time unit).  It is used
        to calculate the Fourier frequencies, freqs, in cycles per time
        unit. The default value is 2.

Expected outcome

Either write None in the docstring or make change the default value of Fs to 2.

Matplotlib version

  • Operating System: OSX 10.11.6
  • Matplotlib Version: 2.0.2
  • Python Version: 3.5.4
  • Jupyter Version (if applicable): notebook server 5.0.0, IPython 6.1.0
  • Other Libraries: N/A

Installed with pip in a conda environment.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    🌱 Good first issueOpen a pull request against these issues if there are no active ones!

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions