8000 [ENH]: Allow rcParams to inherit from other rcParams · Issue #25641 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

[ENH]: Allow rcParams to inherit from other rcParams #25641

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

Closed
oscargus opened this issue Apr 7, 2023 · 1 comment
Closed

[ENH]: Allow rcParams to inherit from other rcParams #25641

oscargus opened this issue Apr 7, 2023 · 1 comment

Comments

@oscargus
Copy link
Member
oscargus commented Apr 7, 2023

Problem

When introducing new rcParams for specific aspects that were previously covered by other rcParams, e.g. #8071 and #22566 it can be useful to be able to keep the "link" to the previous rcParam.

Proposed solution

rcParams can be set to another rcParam and get the value from that.

@timhoffm
Copy link
Member
timhoffm commented Feb 2, 2025

IMHO we don’t need any particular infrastructure for this.

You basically only need to support None and do a chained lookup until you find the first not None value. See #29481 for an example.

@timhoffm timhoffm closed this as completed Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
0