Thanks for the function - it saved me a ton of time :pray: Consider submitting a PR to the matplotlib repo - I opened an issue there https://github.com/matplotlib/matplotlib/issues/28142