-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Inconsistent behavior between Normalizers when input is Dataframe #16400
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
@alicanb Thanks for reporting this; I experienced exactly the same thing on legacy code. Hope it gets fixed. |
Edit: sorry, something was messed up in my install... |
The full traceback is
So clearly, our use of |
This has been fixed by #20511. |
Bug report
Bug summary
It seems matplotlib.colors.Normalize can work with pandas.Series inputs, whereas LogNorm can't.
Code for reproduction
Actual outcome
Expected outcome
Not sure about what's expected, but if I do
Normalize
instead ofLogNorm
it works, if I dolc.set_array(df['dydx'].to_numpy())
instead oflc.set_array(df['dydx'])
it also works. It's the combination of LogNorm and pd.Series is the problem.Matplotlib version
version 3.1.1
module://ipykernel.pylab.backend_inline
The text was updated successfully, but these errors were encountered: