Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/matplotlib/matplotlib
/ to_dict
Method
to_dict
lib/matplotlib/gridspec.py:805–807 ·
view source on GitHub ↗
Return a copy of the subplot parameters as a dict.
(self)
Source
from the content-addressed store, hash-verified
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."
""
807
return
self.__dict__.copy()
Callers
2
reset
Method · 0.95
test_clf_subplotpars
Function · 0.80
Calls
1
copy
Method · 0.45
Tested by
1
test_clf_subplotpars
Function · 0.64