MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / reset

Method reset

lib/matplotlib/gridspec.py:800–803  ·  view source on GitHub ↗

Restore the subplot positioning parameters to the default rcParams values

(self)

Source from the content-addressed store, hash-verified

798 self.hspace = hspace
799
800 def reset(self):
801 """Restore the subplot positioning parameters to the default rcParams values"""
802 for key in self.to_dict():
803 setattr(self, key, mpl.rcParams[f'figure.subplot.{key}'])
804
805 def to_dict(self):
806 """Return a copy of the subplot parameters as a dict."""

Callers 1

test_SubplotParamsFunction · 0.95

Calls 1

to_dictMethod · 0.95

Tested by 1

test_SubplotParamsFunction · 0.76