@@ -181,7 +181,7 @@ class FigureBase(Artist):
181
181
Base class for `.figure.Figure` and `.figure.SubFigure` containing the
182
182
methods that add artists to the figure or subfigure, create Axes, etc.
183
183
"""
184
- def __init__ (self ):
184
+ def __init__ (self , ** kwargs ):
185
185
super ().__init__ ()
186
186
# remove the non-figure artist _axes property
187
187
# as it makes no sense for a figure to be _in_ an axes
@@ -214,6 +214,7 @@ def __init__(self):
214
214
self .subfigs = []
215
215
self .stale = True
216
216
self .suppressComposite = None
217
+ self .set (** kwargs )
217
218
218
219
def _get_draw_artists (self , renderer ):
219
220
"""Also runs apply_aspect"""
@@ -1939,7 +1940,8 @@ def __init__(self, parent, subplotspec, *,
1939
1940
facecolor = None ,
1940
1941
edgecolor = None ,
1941
1942
linewidth = 0.0 ,
1942
- frameon = None ):
1943
+ frameon = None ,
1944
+ ** kwargs ):
1943
1945
"""
1944
1946
Parameters
1945
1947
----------
@@ -1963,8 +1965,14 @@ def __init__(self, parent, subplotspec, *,
1963
1965
1964
1966
frameon : bool, default: :rc:`figure.frameon`
1965
1967
If ``False``, suppress drawing the figure background patch.
1968
+
1969
+ Other Parameters
1970
+ ----------------
1971
+ **kwargs : `.Artist` properties, optional
1972
+
1973
+ %(Artist_kwdoc)s
1966
1974
"""
1967
- super ().__init__ ()
1975
+ super ().__init__ (** kwargs )
1968
1976
if facecolor is None :
1969
1977
facecolor = mpl .rcParams ['figure.facecolor' ]
1970
1978
if edgecolor is None :
@@ -2147,6 +2155,7 @@ def __init__(self,
2147
2155
subplotpars = None , # rc figure.subplot.*
2148
2156
tight_layout = None , # rc figure.autolayout
2149
2157
constrained_layout = None , # rc figure.constrained_layout.use
2158
+ ** kwargs
2150
2159
):
2151
2160
"""
2152
2161
Parameters
@@ -2188,8 +2197,14 @@ def __init__(self,
2188
2197
:doc:`/tutorials/intermediate/constrainedlayout_guide`
2189
2198
for examples. (Note: does not work with `add_subplot` or
2190
2199
`~.pyplot.subplot2grid`.)
2200
+
2201
+ Other Parameters
2202
+ ----------------
2203
+ **kwargs : `.Artist` properties, optional
2204
+
2205
+ %(Artist_kwdoc)s
2191
2206
"""
2192
- super ().__init__ ()
2207
+ super ().__init__ (** kwargs )
2193
2208
2194
2209
self .callbacks = cbook .CallbackRegistry ()
2195
2210
# Callbacks traditionally associated with the canvas (and exposed with
0 commit comments