Skip to content

FIX: Mark shared Axes as stale when propagating adjustable #30462

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/matplotlib/axes/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1736,6 +1736,8 @@ def get_adjustable(self):
Return whether the Axes will adjust its physical dimension ('box') or
its data limits ('datalim') to achieve the desired aspect ratio.

Newly created Axes default to 'box'.

See Also
--------
matplotlib.axes.Axes.set_adjustable
Expand All @@ -1761,6 +1763,8 @@ def set_adjustable(self, adjustable, share=False):

See Also
--------
matplotlib.axes.Axes.get_adjustable
Return the current value of *adjustable*.
matplotlib.axes.Axes.set_aspect
For a description of aspect handling.

Expand Down Expand Up @@ -1792,7 +1796,7 @@ def set_adjustable(self, adjustable, share=False):
"Axes which override 'get_data_ratio'")
for ax in axs:
ax._adjustable = adjustable
self.stale = True
ax.stale = True

def get_box_aspect(self):
"""
Expand Down
Loading