10000 Adjust logic in RcParams to allow for inheritance by cvanelteren · Pull Request #30245 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Adjust logic in RcParams to allow for inheritance #30245

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/matplotlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,13 +799,13 @@ def find_all(self, pattern):

"""
pattern_re = re.compile(pattern)
return RcParams((key, value)
for key, value in self.items()
if pattern_re.search(key))
return self.__class__(
(key, value) for key, value in self.items() if pattern_re.search(key)
)

def copy(self):
"""Copy this RcParams instance."""
rccopy = RcParams()
rccopy = self.__class__()
for k in self: # Skip deprecations and revalidation.
rccopy._set(k, self._get(k))
return rccopy
Expand Down
Loading
0