-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: MatplotlibDeprecationWarning: The is_first_col function was deprecated in Matplotlib 3.4 #40714
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
Hi @arnaujc91,
The culprit seems to be here. pandas/pandas/plotting/_matplotlib/tools.py Line 426 in d01561f
|
Indeed, I just changed this line of code in my local version of Pandas and everything seems to work well. I will try to create a PR tomorrow when I have more time. Thank you! |
Hi @lithomas1,
it is an error which belongs to the test, not to anything I have changed in particular. So I assume it should fail for any PR. |
recent matplotlib docs seem to suggest there is now a public attribute |
I think the issue can be solved replacing assert ax.collections[0].colorbar._label == "z" with assert ax.collections[0].colorbar.ax.get_ylabel() == "z" or ax.collections[0].colorbar.ax.get_xlabel() == "z" This worked for me. As you can see in the original code from colorbar ( ### More code from the original function 'set_label" ###
if self.orientation == "vertical":
self.ax.set_ylabel(label, loc=loc, **kwargs)
else:
self.ax.set_xlabel(label, loc=loc, **kwargs)
self.stale = True the label to be checked depends on this |
Problem description
After executing the previous code the following message from Matplotlib is shown:
The text was updated successfully, but these errors were encountered: