8000 Merge pull request #12604 from tacaswell/fix_371_import · matplotlib/matplotlib@1b0d3aa · GitHub
[go: up one dir, main page]

Skip to content

Commit 1b0d3aa

Browse files
authored
Merge pull request #12604 from tacaswell/fix_371_import
FIX: over-ride 'copy' on RcParams
2 parents 65bceb1 + ae005f3 commit 1b0d3aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/matplotlib/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,10 @@ def find_all(self, pattern):
924924
for key, value in self.items()
925925
if pattern_re.search(key))
926926

927+
def copy(self):
928+
return {k: dict.__getitem__(self, k)
929+
for k in self}
930+
927931

928932
def rc_params(fail_on_error=False):
929933
"""Return a :class:`matplotlib.RcParams` instance from the

0 commit comments

Comments
 (0)
0