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 72aa3f7 + 919c7b9 commit e22a6e8Copy full SHA for e22a6e8
lib/matplotlib/__init__.py
@@ -799,13 +799,13 @@ def find_all(self, pattern):
799
800
"""
801
pattern_re = re.compile(pattern)
802
- return RcParams((key, value)
803
- for key, value in self.items()
804
- if pattern_re.search(key))
+ return self.__class__(
+ (key, value) for key, value in self.items() if pattern_re.search(key)
+ )
805
806
def copy(self):
807
"""Copy this RcParams instance."""
808
- rccopy = RcParams()
+ rccopy = self.__class__()
809
for k in self: # Skip deprecations and revalidation.
810
rccopy._set(k, self._get(k))
811
return rccopy
0 commit comments