From 239a28b37d6d15b8cd99f1b7854f75c55edfefa3 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Tue, 25 Sep 2018 12:59:10 -0400 Subject: [PATCH] MNT: put back `_hold` as read-only attribute on AxesBase This is to un-break the current version of cartopy. --- 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 712c9f097371..25743b99b17c 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -399,6 +399,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)