Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f4a7fea

Browse files
authored
Merge pull request #12274 from tacaswell/mnt_be_nice_about_hold
MNT: put back `_hold` as read-only attribute on AxesBase
2 parents 5cbc072 + 239a28b commit f4a7fea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,10 @@ class _AxesBase(martist.Artist):
399399
_shared_y_axes = cbook.Grouper()
400400
_twinned_axes = cbook.Grouper()
401401

402+
@property
403+
def _hold(self):
404+
return True
405+
402406
def __str__(self):
403407
return "{0}({1[0]:g},{1[1]:g};{1[2]:g}x{1[3]:g})".format(
404408
type(self).__name__, self._position.bounds)

0 commit comments

Comments
 (0)