We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5ad49b4 + ef9e418 commit f99ff7eCopy full SHA for f99ff7e
lib/matplotlib/gridspec.py
@@ -255,16 +255,15 @@ def __setstate__(self, state):
255
256
def update(self, **kwargs):
257
"""
258
- Update the current values. If any kwarg is None, default to
259
- the current value, if set, otherwise to rc.
260
- """
+ Update the current values.
261
+ Values set to None use the rcParams value.
+ """
262
for k, v in kwargs.items():
263
if k in self._AllowedKeys:
264
setattr(self, k, v)
265
else:
266
- raise AttributeError("%s is unknown keyword" % (k,))
267
-
+ raise AttributeError(f"{k} is an unknown keyword")
268
for figmanager in _pylab_helpers.Gcf.figs.values():
269
for ax in figmanager.canvas.figure.axes:
270
# copied from Figure.subplots_adjust
0 commit comments