-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
flipping of imshow in specgram #17878
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
Comments
The semantics around extent / origin / the default extents is a bit complicated (see https://matplotlib.org/tutorials/intermediate/imshow_extent.html). The relevant code for this is at matplotlib/lib/matplotlib/axes/_axes.py Lines 7551 to 7552 in ec0132f
|
The work here is to:
|
I would like to work on this for the SciPy 2020 sprint. |
I am also looking into this as part of the SciPy 2020 sprint. |
sorry for not being clear. What I mean by "pin" is "ensure that in @thedorathanasiadis and I had a brief verbal discussion about this too (that I should have moved to this issue in text, sorry). that we have two ways to fix this:
I am inclined to option 2 (it is simpler and given that I think this has been broken forever no one is clamoring for this feature). Going with option 2 now does not prevent us from being able to do option 1 later, but if we go with option 1 now we can't go back. |
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug summary
The function
uses imshow internally to plot a spectrogram but does not set the origin. So someone can externally overwrite the standard behaviour and wonder, why the spectrogramm is flipped.
Unintensionally, this can even happen if another imshow was used before with different origin.
Code for reproduction
For reproduction, only the origin setting before the function call is added to the standard demo and flips the output.
Actual outcome
Flipping of the spectrogram without flipping the y-axis.
Expected outcome
Non-flipping independent of origin setting of imshow or specifically, "image.origin" of rcParams.
Matplotlib version
3.2.1
conda installation
Suggestion
Someone with the knowledge should add the keyword origin='upper' to the relevant imshow command of specgram.
The text was updated successfully, but these errors were encountered: