Skip to content

Conversation

@QuLogic
Copy link
Member

@QuLogic QuLogic commented Oct 3, 2024

PR summary

Taking cues from the math symbol table, this adds a directive to generate a listing from the RcParams dictionary, with types taken from the validators (partially complete), though there could perhaps be other ways to implement it. Then the rc role is updated to point to these individual anchors.

We also have nowhere to put the documentation for each one yet, so the actual information is all just stubs. This would be the main obstacle to completing this change.

PR checklist

Taking cues from the math symbol table, this adds a directive to
generate a listing from the `RcParams` dictionary, with types taken from
the validators (partially complete), though there could perhaps be other
ways to implement it. Then the `rc` role is updated to point to these
individual anchors.

We also have nowhere to put the documentation for each one yet, so the
actual information is all just stubs.
@github-actions github-actions bot added topic: rcparams topic: sphinx extension Documentation: build building the docs Documentation: user guide files in galleries/users_explain or doc/users labels Oct 3, 2024
@timhoffm
Copy link
Member

timhoffm commented Oct 3, 2024

I believe we eventually should have a function-based/declarative approach to specifying rcParams, similar to argparse.

e.g.

config.add_param(""figure.dpi", type=float, default=100, help="figure dots per inch")

This would bind all relevant information together and make it easy to generate documentation. A minor obstacle would be to generate a reasonably formatted default matplotlibrc (but we could also leave the existing matplotlibrc for now and instead just write a function that checks that it's consistent with the config.

@QuLogic
Copy link
Member Author

QuLogic commented Jan 9, 2026

This has been superseded by #30871.

@QuLogic QuLogic closed this Jan 9, 2026
@QuLogic QuLogic deleted the doc-rcparams branch January 9, 2026 23:13
QuLogic added a commit to QuLogic/matplotlib that referenced this pull request Jan 24, 2026
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 sorts the rcParams and hides the private
(`_`-prefixed) ones.
QuLogic added a commit to QuLogic/matplotlib that referenced this pull request Jan 26, 2026
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 sorts the rcParams and hides the private
(`_`-prefixed) ones.
QuLogic added a commit to QuLogic/matplotlib that referenced this pull request Jan 27, 2026
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 pushed a commit that referenced this pull request Feb 2, 2026
Using the extension from #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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants