8000 Convert two hold() calls in axes_grid1 to attribute assignments · matplotlib/matplotlib@0cc0f57 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0cc0f57

Browse files
committed
Convert two hold() calls in axes_grid1 to attribute assignments
1 parent 219ce30 commit 0cc0f57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/mpl_toolkits/axes_grid1/axes_grid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def colorbar(self, mappable, **kwargs):
8989
else:
9090
kwargs["ticks"] = locator
9191

92-
self.hold(True)
92+
self._hold = True
9393
if self.orientation in ["top", "bottom"]:
9494
orientation = "horizontal"
9595
else:

lib/mpl_toolkits/axes_grid1/colorbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ def colorbar(mappable, cax=None, ax=None, **kw):
820820
ax = plt.gca()
821821
if cax is None:
822822
cax, kw = make_axes(ax, **kw)
823-
cax.hold(True)
823+
cax._hold = True
824824
cb = Colorbar(cax, mappable, **kw)
825825

826826
def on_changed(m):

0 commit comments

Comments
 (0)
0