We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Bug summary
The docs for matplotlib.pyplot.specgram's mode argument reference the 'complex' mode setting, which is not a valid option:
matplotlib.pyplot.specgram
mode
'complex' returns the complex-valued frequency spectrum. (from here)
'complex' returns the complex-valued frequency spectrum.
However, if you try to set mode='complex', you receive a ValueError due to this line of code:
mode='complex'
ValueError
matplotlib/lib/matplotlib/axes/_axes.py
Lines 7653 to 7654 in 74640bb
Code for reproduction
import matplotlib.pyplot as plt import numpy as np plt.specgram(np.ones(1000), Fs=100, mode='complex')
Expected outcome
The docs should not reference the complex mode type if it is not planned supported.
complex
Matplotlib version N/A
The text was updated successfully, but these errors were encountered:
Care to open a PR - someone simply forgot to remove that phrase...
Sorry, something went wrong.
DOC: Remove mention of 'complex' mode in specgram docstring
aabcc7a
Fixes matplotlib#13540
8be5fe8
57880b6
For sure! 😄 Just wanted to make sure that my understanding was correct.
62e8b70
No branches or pull requests
Bug report
Bug summary
The docs for
matplotlib.pyplot.specgram
'smode
argument reference the 'complex' mode setting, which is not a valid option:'complex' returns the complex-valued frequency spectrum.
(from here)However, if you try to set
mode='complex'
, you receive aValueError
due to this line of code:matplotlib/lib/matplotlib/axes/_axes.py
Lines 7653 to 7654 in 74640bb
Code for reproduction
Expected outcome
The docs should not reference the
complex
mode type if it is not planned supported.Matplotlib version
N/A
The text was updated successfully, but these errors were encountered: