Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Fix polar facecolor#6001
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Fix polar facecolor#6001
Changes from1 commit
0fe598c
c68af4a
4392154
058eea7
9cf717f
df3e4bc
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
_axisbg -> _facecolorFinishing the change from axisbg -> facecolor
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -519,7 +519,7 @@ def __init__(self, fig, rect, | ||
facecolor = axisbg | ||
if facecolor is None: | ||
facecolor = rcParams['axes.facecolor'] | ||
self._facecolor = facecolor | ||
self._frameon = frameon | ||
self._axisbelow = rcParams['axes.axisbelow'] | ||
@@ -1058,7 +1058,7 @@ def cla(self): | ||
# setting the edgecolor to None | ||
self.patch = self.axesPatch = self._gen_axes_patch() | ||
self.patch.set_figure(self.figure) | ||
self.patch.set_facecolor(self._facecolor) | ||
self.patch.set_edgecolor('None') | ||
self.patch.set_linewidth(0) | ||
self.patch.set_transform(self.transAxes) | ||
@@ -2714,7 +2714,7 @@ def set_axis_on(self): | ||
@cbook.deprecated('2.0', alternative='get_facecolor') | ||
def get_axis_bgcolor(self): | ||
"""Return the axis background color""" | ||
return self._facecolor | ||
@cbook.deprecated('2.0', alternative='set_facecolor') | ||
def set_axis_bgcolor(self, color): | ||
@@ -2727,7 +2727,7 @@ def set_axis_bgcolor(self, color): | ||
warnings.warn( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Is this warning still needed, given the decorator? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I think you are correct. | ||
"set_axis_bgcolor is deprecated. Use set_facecolor instead.", | ||
cbook.mplDeprecation) | ||
self._facecolor = color | ||
self.patch.set_facecolor(color) | ||
self.stale = True | ||
# data limits, ticks, tick labels, and formatting | ||