Skip to content

Commit 36e0f1a

Browse files
committed
FIX: Mark shared Axes as stale when propagating adjustable
1 parent 1f8ff33 commit 36e0f1a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1736,6 +1736,8 @@ def get_adjustable(self):
17361736
Return whether the Axes will adjust its physical dimension ('box') or
17371737
its data limits ('datalim') to achieve the desired aspect ratio.
17381738
1739+
Newly created Axes default to 'box'.
1740+
17391741
See Also
17401742
--------
17411743
matplotlib.axes.Axes.set_adjustable
@@ -1761,6 +1763,8 @@ def set_adjustable(self, adjustable, share=False):
17611763
17621764
See Also
17631765
--------
1766+
matplotlib.axes.Axes.get_adjustable
1767+
Return the current value of *adjustable*.
17641768
matplotlib.axes.Axes.set_aspect
17651769
For a description of aspect handling.
17661770
@@ -1792,7 +1796,7 @@ def set_adjustable(self, adjustable, share=False):
17921796
"Axes which override 'get_data_ratio'")
17931797
for ax in axs:
17941798
ax._adjustable = adjustable
1795-
self.stale = True
1799+
ax.stale = True
17961800

17971801
def get_box_aspect(self):
17981802
"""

0 commit comments

Comments
 (0)