-
Notifications
You must be signed in to change notification settings - Fork 912
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
BUG: Fix broken call to ax.legend #2886
Conversation
It seems we are getting tripped up by ax.legend's rather complex calling convention, resulting in an error: "You have mixed positional and keyword arguments, some input may be discarded." Simplify the call by integrating all arguments into kwargs.
Tests failed, but it seems possible they weren't caused by my commit since the master branch is also failing. I rebased off of the commit described below. This seems to be the most recent commit that passed CI on master. commit e32573d |
Where do you see this error? Do you have a reproducible example? The fix looks okay to me but I'd like to see the bug first :). |
Ah! Great, thanks! We should probably also add a test for this case as this apparent failure was not caught by our current test suite. Could you add one? There'll be some other testing the legend, so you can mirror the implementation. |
Ok. Edited a test case to hit this problem. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! the CI failure is not related.
Co-authored-by: William Navarre <navarre@dimins.com> Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
It seems we are getting tripped up by ax.legend's rather complex calling convention, resulting in an error: "You have mixed positional and keyword arguments, some input may be discarded."
Simplify the call by integrating all arguments into kwargs.