Allow different clipping on InsetIndicator rectangle and connectors.#30648
Allow different clipping on InsetIndicator rectangle and connectors.#30648juseg wants to merge 13 commits into
Conversation
|
Thanks for the PR - are you still interested on working on this? Before it's ready to be reviewed, it still needs a test adding to make sure we don't accidentally introduce the bug again later down the line. |
|
Thank you for the comment! I am interested to put more work in, but not yet sure how to go about tests. The bug is caused by code in the indicator's matplotlib/lib/matplotlib/inset.py Lines 233 to 238 in 5cd38c3 Because of that the result of https://matplotlib.org/devdocs/devel/testing.html#compare-two-methods-of-creating-an-image |
|
The easiest way to add a test would be to modify this existing test: matplotlib/lib/matplotlib/tests/test_inset.py Lines 96 to 107 in a5cc230 by setting the |
|
Hi @juseg are you still interested in working on this? Do you need any more help? |
|
Hi @rcomer thanks for the heads-up and sorry for letting this sleep, I am back at it will try and add tests based on the advice above! |
I am happy to get feedback at this stage. Specifically:
Edit: @melissawm Github Actions seems to remove that |
|
Huh! Looks like a bug in our labeler action - I'll take a look. Thanks for flagging @juseg ! |
PR summary
This adds
clip_onto the tuple of_shared_propertiesinmatplotlib.insetso thatInsetIndicatorrecognizes that itsrectangleandconnectorscomponents should be drawn independently if they have differentclip_onvalues (closes #30642, see that issue for a minimal example).PR checklist