Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

changed default values of Axes.specgram()#9221

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

andreh7
Copy link

as proposed in#9100 (comment)

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 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

Copy link
Member

@dstansbydstansby left a comment

Choose a reason for hiding this comment

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

👍

@jklymak
Copy link
Member

I still think this is the wrong way to go, and thataxes.specgram should passNone arguments through tomlab.specgram so the defaults inmlab.specgram are used. Otherwise, the two are in danger of becoming inconsistent.

To properly format the plot, theoutput frommlab.specgram should be used, not the input. Given that the plotting function only usesFs, andFs is easily retrievable from the output (= 2 * freq[-1]) this is easily done.

phobson and andreh7 reacted with thumbs up emoji

@dstansby
Copy link
Member

(FWIW I think eventuallymlab.specgram should disappear and be replaced byhttps://docs.scipy.org/doc/scipy-0.17.0/reference/generated/scipy.signal.spectrogram.html sinceMatplotlib is really a plotting library and not a spectral analysis library)

jklymak reacted with thumbs up emoji

@anntzer
Copy link
Contributor

pyplot would need to be regenerated too (or#9173 merged :-)). And I agree that the whole thing should be deprecated anyways.

@jklymak
Copy link
Member

I'm going to close this, because its sat for quite a while and I don't think the proposed behaviour is correct. Feel free to re-open if I am mistaken.

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

@dstansbydstansbydstansby approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@andreh7@jklymak@dstansby@anntzer

[8]ページ先頭

©2009-2025 Movatter.jp