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

Skip to content

Commit df3e4bc

Browse files
committed
API: match previous set_axis_bgcolor behavior
When setting the facecolor stash the value so that future calls to `cla` will restore the facecolor to this value.
1 parent 9cf717f commit df3e4bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,6 +1088,7 @@ def get_facecolor(self):
10881088
get_fc = get_facecolor
10891089

10901090
def set_facecolor(self, color):
1091+
self._facecolor = color
10911092
return self.patch.set_facecolor(color)
10921093
set_fc = set_facecolor
10931094

0 commit comments

Comments
 (0)