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

Skip to content

Commit fad80e7

Browse files
committed
Made layoutboxes private
1 parent 10ce68f commit fad80e7

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2598,19 +2598,6 @@ def redraw_in_frame(self):
25982598
def get_renderer_cache(self):
25992599
return self._cachedRenderer
26002600

2601-
# layoutboxes: allow us to set these after instantiation.
2602-
def set_layoutbox(self, layoutbox):
2603-
"""
2604-
Set the layoutbox for this axis...
2605-
"""
2606-
self._layoutbox = layoutbox
2607-
2608-
def set_poslayoutbox(self, layoutbox):
2609-
"""
2610-
Set the spinelayoutbox for this axis...
2611-
"""
2612-
self._poslayoutbox = layoutbox
2613-
26142601
# Axes rectangle characteristics
26152602

26162603
def get_frame_on(self):

lib/matplotlib/colorbar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,8 +1204,8 @@ def make_axes(parents, location=None, orientation=None, fraction=0.15,
12041204
lb, lbpos = constrained_layout.layoutcolorbargridspec(
12051205
parents, cax, shrink, aspect, location, pad)
12061206

1207-
cax.set_layoutbox(lb)
1208-
cax.set_poslayoutbox(lbpos)
1207+
cax._layoutbox = lb
1208+
cax._poslayoutbox = lbpos
12091209

12101210
return cax, kw
12111211

0 commit comments

Comments
 (0)