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
Changed axis selection when zooming datalim-adjustable fixed-aspect axes
When aspect is set and adjustable="datalim", should we change the x
limits or the y limits to get the correct aspect? The old code used
some complex conditions, which I actually haven't managed to fully
understand, to either expand or shrink one of the axises. Instead, just
choose to always expand (rather than shrink) one of the axises, which
will avoid sending artists out-of-bounds. (The sole exception is in
care of shared axes, which we do not touch as explained in the comment.)
This patch caused a change in the autolimiting of
test_axes.py::test_pie_frame_grid which was buggy anyways, I forced the
old behavior by setting x/ylims manually (after checking that the
default is to expand the limits).
0 commit comments