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

Changed normalization in _spectral_helper() to obtain conistent scaling #8582

Merged
merged 2 commits into from Jun 12, 2017
Merged

Changed normalization in _spectral_helper() to obtain conistent scaling #8582

merged 2 commits into from Jun 12, 2017

Conversation

DietBru
Copy link
Contributor

@DietBru DietBru commented May 6, 2017

Fixes #8417.

Also a docstring of axes.magnitude_spectrum() is updated since it has no parameter scaling.

…ng in magnitude_spectrum() and fixed doc string.
Copy link
Member

@dstansby dstansby left a comment

Choose a reason for hiding this comment

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

Looks good to me - is there any reason we're running our own FFT code and not just using scipy? (I presume because we don't want scipy as a dependency)

@dstansby dstansby added this to the 2.1 (next point release) milestone May 14, 2017
@DietBru
Copy link
Contributor Author

DietBru commented May 14, 2017

As far as I understood it, the reason for having our own implementation is that the FORTRAN code in SciPy is making installation cumbersome under windows.

@WeatherGod
Copy link
Member

WeatherGod commented May 16, 2017 via email

Copy link
Member

@dstansby dstansby left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

@tacaswell
Copy link
Member

Is there any way to recover the previous behavior?

Copy link
Member

@tacaswell tacaswell left a comment

Choose a reason for hiding this comment

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

@DietBru
Copy link
Contributor Author

DietBru commented Jun 11, 2017

@tacaswell I added an example to the api_changes on how to obtain the old behavior. I don't think it makes sense to add option to the function, since the original behavior is inconsistent (different window functions make different scalings).

@tacaswell tacaswell merged commit aec1e5b into matplotlib:master Jun 12, 2017
@tacaswell
Copy link
Member

Thanks @vollbier for all of the work you have been doing on the spectral related code!

@DietBru DietBru deleted the magnitude_spectrumScaling branch November 12, 2017 12:06
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.

None yet

4 participants