FIX: Prevent set_alpha from changing color of legend patch#22009
FIX: Prevent set_alpha from changing color of legend patch#22009QuLogic merged 1 commit intomatplotlib:mainfrom
Conversation
of polycollection (e.g. from fill_between) by updating original edge and face color too.
|
@StefRe Do you think there something reasonable thing to search on to see if we have any other moles of this category that need to be whacked? |
|
@tacaswell |
|
It is much easier to prove a bug exists than it does not exist ;) I was thinking of a heuristiic like "skimmed all of the functions called |
|
@tacaswell a very rough heuristics would be looking around which yields According to this, everything seems to be fine :). |
…lor of legend patch
…009-on-v3.5.x Backport PR #22009 on branch v3.5.x (FIX: Prevent set_alpha from changing color of legend patch)
of polycollection (e.g. from fill_between) by updating original edge and face color too.
Closes #21966
PR Summary
When updating the properties of the legend patch from the
PolyCollectionreturned byfill_between, the HandlerPolyCollection failed to set the original edge and face colors so that when later setting the alpha of the patch, its color was set to the defaultC0.This was fixed by updating the original edge and face colors too.
PR Checklist
Tests and Styling
pytestpasses).flake8-docstringsand runflake8 --docstring-convention=all).Documentation
doc/users/next_whats_new/(follow instructions in README.rst there).doc/api/next_api_changes/(follow instructions in README.rst there).