You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: fill_between with get_xaxis_transform increases y-limits #30320
In matplotlib 3.10.0, using fill_between() with transform=ax.get_xaxis_transform() increases the y-limits every time it is called, and the original plot gets squeezed gradually, which did not happen in previous version (3.8.0).
changed the title [-][Bug]: fill_between with get_xaxis_transform increases y-limits[/-][+][Bug]: `fill_between` with `get_xaxis_transform` increases y-limits[/+]on Jul 16, 2025
@nrnavaneet thanks for the interest in helping. However, here it was quicker for me to just write the fix instead of explaining what would need to be done.
Activity
[-][Bug]: fill_between with get_xaxis_transform increases y-limits[/-][+][Bug]: `fill_between` with `get_xaxis_transform` increases y-limits[/+]timhoffm commentedon Jul 16, 2025
I suspect this part of
#30287#28702 may be the causenrnavaneet commentedon Jul 16, 2025
Hi @timhoffm,
I’d like to help fix this issue.
Please let me know if there’s a preferred way to proceed or if I should start drafting a PR with a test case reproducing the problem.
QuLogic commentedon Jul 17, 2025
This seems unrelated; which PR did you mean?
timhoffm commentedon Jul 17, 2025
Sorry, wrong number. Sometimes GitHub autocompletion does strage things. The correct PR is #28702.
FIX Update Axes limits from Axes.add_collection(... autolim=True)
timhoffm commentedon Jul 17, 2025
@nrnavaneet thanks for the interest in helping. However, here it was quicker for me to just write the fix instead of explaining what would need to be done.
nrnavaneet commentedon Jul 17, 2025
Oh that's alright. 😄
FIX Update Axes limits from Axes.add_collection(... autolim=True)
FIX Update Axes limits from Axes.add_collection(... autolim=True)