From 45335e853cf55a0a7fd9668eed4bdd98fc106f2e Mon Sep 17 00:00:00 2001 From: David Stansby Date: Thu, 27 Sep 2018 12:42:54 +0100 Subject: [PATCH] Backport PR #12274: MNT: put back `_hold` as read-only attribute on AxesBase --- lib/matplotlib/axes/_base.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index 01d6add25184..00457a29dfb8 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -402,6 +402,10 @@ class _AxesBase(martist.Artist): _shared_y_axes = cbook.Grouper() _twinned_axes = cbook.Grouper() + @property + def _hold(self): + return True + def __str__(self): return "{0}({1[0]:g},{1[1]:g};{1[2]:g}x{1[3]:g})".format( type(self).__name__, self._position.bounds)