Skip to content

Conversation

@QuLogic
Copy link
Member

@QuLogic QuLogic commented Jan 24, 2026

PR summary

Using the extension from #28930 (and data from #30871), drop the static generated rcParams file, and move to a directive that gets generated on build. This avoids the table getting out of date as rcParams are changed (which I've already accidentally forgotten about on the text-overhaul branch.)

Note, that this also sorts the rcParams and hides the private (_-prefixed) ones.

PR checklist

@QuLogic QuLogic added this to the v3.11.0 milestone Jan 24, 2026
@github-actions github-actions bot added topic: rcparams Documentation: build building the docs Documentation: user guide files in galleries/users_explain or doc/users labels Jan 24, 2026
self.state.document.settings.env.note_dependency(__file__)
self.state.document.settings.env.note_dependency(rcsetup.__file__)
lines = []
for param in sorted(rcsetup._params):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe sorting goes into the wrong direction. I've created the parameters with the same order as in matplotlibrc. This has some implicit logical grouping and should be "ordered enough" for a start. The plan is to make the grouping more explicit and also be able to add group information, like matplotlibrc does informally already.

I still have to figure out how to best define the groups on a technical level. That's why I've started with a plain list.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, if you have a better layout in mind, we can go with that.

Using the extension from matplotlib#28930, drop the static generated rcParams
file, and move to a directive that gets generated on build. This avoids
the table getting out of date as rcParams are changed.

Note, that this also hides the private (`_`-prefixed) rcParams.
@story645 story645 merged commit e3776e9 into matplotlib:main Feb 2, 2026
47 of 52 checks passed
@QuLogic QuLogic deleted the doc-auto-rcparams branch February 2, 2026 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation: build building the docs Documentation: user guide files in galleries/users_explain or doc/users topic: rcparams

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants