Skip to content
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

Docs for matplotlib.pyplot.specgram() reference an unsupported mode setting #13540

Closed
bcongdon opened this issue Feb 28, 2019 · 2 comments
Closed
Milestone

Comments

@bcongdon
Copy link
Contributor

Bug report

Bug summary

The docs for matplotlib.pyplot.specgram's mode 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 a ValueError due to this line of code:

if mode == 'complex':
raise ValueError('Cannot plot a complex specgram')

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.

Matplotlib version
N/A

@jklymak
Copy link
Member

jklymak commented Feb 28, 2019

Care to open a PR - someone simply forgot to remove that phrase...

@bcongdon
Copy link
Contributor Author

For sure! 😄 Just wanted to make sure that my understanding was correct.

@QuLogic QuLogic added this to the v3.1.0 milestone Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants