Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c68af4a

Browse filesBrowse files
committed
MNT: rename internal variable in _AxesBase
_axisbg -> _facecolor Finishing the change from axisbg -> facecolor
1 parent 0fe598c commit c68af4a
Copy full SHA for c68af4a

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎lib/matplotlib/axes/_base.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_base.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ def __init__(self, fig, rect,
519519
facecolor = axisbg
520520
if facecolor is None:
521521
facecolor = rcParams['axes.facecolor']
522-
self._axisbg = facecolor
522+
self._facecolor = facecolor
523523
self._frameon = frameon
524524
self._axisbelow = rcParams['axes.axisbelow']
525525

@@ -1058,7 +1058,7 @@ def cla(self):
10581058
# setting the edgecolor to None
10591059
self.patch = self.axesPatch = self._gen_axes_patch()
10601060
self.patch.set_figure(self.figure)
1061-
self.patch.set_facecolor(self._axisbg)
1061+
self.patch.set_facecolor(self._facecolor)
10621062
self.patch.set_edgecolor('None')
10631063
self.patch.set_linewidth(0)
10641064
self.patch.set_transform(self.transAxes)
@@ -2714,7 +2714,7 @@ def set_axis_on(self):
27142714
@cbook.deprecated('2.0', alternative='get_facecolor')
27152715
def get_axis_bgcolor(self):
27162716
"""Return the axis background color"""
2717-
return self._axisbg
2717+
return self._facecolor
27182718

27192719
@cbook.deprecated('2.0', alternative='set_facecolor')
27202720
def set_axis_bgcolor(self, color):
@@ -2727,7 +2727,7 @@ def set_axis_bgcolor(self, color):
27272727
warnings.warn(
27282728
"set_axis_bgcolor is deprecated. Use set_facecolor instead.",
27292729
cbook.mplDeprecation)
2730-
self._axisbg = color
2730+
self._facecolor = color
27312731
self.patch.set_facecolor(color)
27322732
self.stale = True
27332733
# data limits, ticks, tick labels, and formatting

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.