File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -2714,7 +2714,7 @@ def set_axis_on(self):
2714
2714
@cbook .deprecated ('2.0' , alternative = 'get_facecolor' )
2715
2715
def get_axis_bgcolor (self ):
2716
2716
"""Return the axis background color"""
2717
- return self ._facecolor
2717
+ return self .get_facecolor ()
2718
2718
2719
2719
@cbook .deprecated ('2.0' , alternative = 'set_facecolor' )
2720
2720
def set_axis_bgcolor (self , color ):
@@ -2724,12 +2724,7 @@ def set_axis_bgcolor(self, color):
2724
2724
ACCEPTS: any matplotlib color - see
2725
2725
:func:`~matplotlib.pyplot.colors`
2726
2726
"""
2727
- warnings .warn (
2728
- "set_axis_bgcolor is deprecated. Use set_facecolor instead." ,
2729
- cbook .mplDeprecation )
2730
- self ._facecolor = color
2731
- self .patch .set_facecolor (color )
2732
- self .stale = True
2727
+ return self .set_facecolor (color )
2733
2728
# data limits, ticks, tick labels, and formatting
2734
2729
2735
2730
def invert_xaxis (self ):
You can’t perform that action at this time.
0 commit comments