@@ -184,7 +184,7 @@ class FigureBase(Artist):
184
184
Base class for `.figure.Figure` and `.figure.SubFigure` containing the
185
185
methods that add artists to the figure or subfigure, create Axes, etc.
186
186
"""
187
- def __init__ (self ):
187
+ def __init__ (self , ** kwargs ):
188
188
super ().__init__ ()
189
189
# remove the non-figure artist _axes property
190
190
# as it makes no sense for a figure to be _in_ an axes
@@ -217,6 +217,7 @@ def __init__(self):
217
217
self .subfigs = []
218
218
self .stale = True
219
219
self .suppressComposite = None
220
+ self .set (** kwargs )
220
221
221
222
def _get_draw_artists (self , renderer ):
222
223
"""Also runs apply_aspect"""
@@ -1945,7 +1946,8 @@ def __init__(self, parent, subplotspec, *,
1945
1946
facecolor = None ,
1946
1947
edgecolor = None ,
1947
1948
linewidth = 0.0 ,
1948
- frameon = None ):
1949
+ frameon = None ,
1950
+ ** kwargs ):
1949
1951
"""
1950
1952
Parameters
1951
1953
----------
@@ -1969,8 +1971,14 @@ def __init__(self, parent, subplotspec, *,
1969
1971
1970
1972
frameon : bool, default: :rc:`figure.frameon`
1971
1973
If ``False``, suppress drawing the figure background patch.
1974
+
1975
+ Other Parameters
1976
+ ----------------
1977
+ **kwargs : `.Artist` properties, optional
1978
+
1979
+ %(Artist_kwdoc)s
1972
1980
"""
1973
- super ().__init__ ()
1981
+ super ().__init__ (** kwargs )
1974
1982
if facecolor is None :
1975
1983
facecolor = mpl .rcParams ['figure.facecolor' ]
1976
1984
if edgecolor is None :
@@ -2154,6 +2162,7 @@ def __init__(self,
2154
2162
subplotpars = None , # rc figure.subplot.*
2155
2163
tight_layout = None , # rc figure.autolayout
2156
2164
constrained_layout = None , # rc figure.constrained_layout.use
2165
+ ** kwargs
2157
2166
):
2158
2167
"""
2159
2168
Parameters
@@ -2195,8 +2204,14 @@ def __init__(self,
2195
2204
:doc:`/tutorials/intermediate/constrainedlayout_guide`
2196
2205
for examples. (Note: does not work with `add_subplot` or
2197
2206
`~.pyplot.subplot2grid`.)
2207
+
2208
+ Other Parameters
2209
+ ----------------
2210
+ **kwargs : `.Artist` properties, optional
2211
+
2212
+ %(Artist_kwdoc)s
2198
2213
"""
2199
- super ().__init__ ()
2214
+ super ().__init__ (** kwargs )
2200
2215
2201
2216
self .callbacks = cbook .CallbackRegistry ()
2202
2217
# Callbacks traditionally associated with the canvas (and exposed with
0 commit comments