Thanks to visit codestin.com Credit goes to github.com
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.
1 parent d1673ec commit 919c7b9Copy full SHA for 919c7b9
1 file changed
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