Skip to content

Commit a8959c5

Browse files
committed
Link to individual rcParams descriptions
1 parent 0729413 commit a8959c5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/matplotlib/rcsetup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3281,6 +3281,8 @@ def _generate_rst():
32813281
"""
32823282
for param in _params:
32833283
text += f"""
3284+
.. _rcparam_{param.name.replace('.', '_')}:
3285+
32843286
{param.name}: ``{param.default!r}``
32853287
{param.description if param.description else "*no description*"}
32863288
"""

lib/matplotlib/sphinxext/roles.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ def _depart_query_reference_node(self, node):
8383
# typically to the first relevant parameter in the group.
8484
_RC_WILDCARD_LINK_MAPPING = {
8585
"animation.[name-of-encoder]_args": "animation.ffmpeg_args",
86-
"figure.subplot.*": "figure.subplot.left",
87-
"figure.subplot.[name]": "figure.subplot.left",
86+
"figure.subplot.*": "figure.subplot-left",
87+
"figure.subplot.[name]": "figure.subplot-left",
8888
"font.*": "font.family",
8989
"lines.*": "lines.linewidth",
9090
"patch.*": "patch.edgecolor",

0 commit comments

Comments
 (0)