Adjust logic in RcParams to allow for inheritance#30245
Adjust logic in RcParams to allow for inheritance#30245jklymak merged 1 commit intomatplotlib:mainfrom
Conversation
|
We add a bunch of custom rc flags, and I am currently in the process of unifying the way we used to do things and align them with how matplotlib is doing it. That is, I prefer to subclass it rather than providing a custom class that is currently very very messy. |
|
Thanks! Is there anything I can read up on potential changes to RcParams you are considering? |
no concise summary as there’s no concrete plan yet. You can have a look at the above linked items to get some ideas.
So all you need is additional parameters for your library? That’s something we consider to natively support one way or the other in the future. |
|
Ok thanks for letting me know, and great to hear. Will keep a close eye 👀 |
We over at UltraPlot ran into an issue where I wanted to derrive our RcClass directly from matplotlib's RcParams. However, in the source I noticed there are two places where the class hardcodes the class itself. This PR addresses this issue by making that initialization tied to the class type, opening up the potential for direct inheritance without needing to override these methods.