-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix FacetGrid.set_titles #6839 #6843
Conversation
Wonderful. Thanks @lopezvoliver ! Can you add a test in a new function around here (some docs here): xarray/xarray/tests/test_plot.py Line 2264 in 3f7cc2d
I think it would look like
|
for more information, see https://pre-commit.ci
Hi @dcherian , thanks for the feedback. Other than the test, I also had to add a new function property_in_axes_text that performs the check only on the specified label. I hope this is what was expected. Cheers |
@@ -112,6 +112,19 @@ def substring_not_in_axes(substring, ax): | |||
return all(check) | |||
|
|||
|
|||
def property_in_axes_text(property, property_str, target_txt, ax): |
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.
👏🏾
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 @lopezvoliver very nice fix. I see this is your first contribution. welcome to xarray!
(this will get merged in a couple of days after others have a chance to take a look if they want)
whats-new.rst
Added
handle.update(kwargs)
afterhandle.set_text(title)
so that the title properties sent using keyword arguments are also updated.