8000 Backport PR #23750: Fix rcParams documentation · matplotlib/matplotlib@6af8d44 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6af8d44

Browse files
QuLogicmeeseeksmachine
authored andcommitted
Backport PR #23750: Fix rcParams documentation
1 parent 026f70c commit 6af8d44

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

doc/sphinxext/custom_roles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def depart_query_reference_node(self, node):
4343
def rcparam_role(name, rawtext, text, lineno, inliner, options={}, content=[]):
4444
# Generate a pending cross-reference so that Sphinx will ensure this link
4545
# isn't broken at some point in the future.
46-
title = f'rcParam["{text}"]'
46+
title = f'rcParams["{text}"]'
4747
target = 'matplotlibrc-sample'
4848
ref_nodes, messages = inliner.interpreted(title, f'{title} <{target}>',
4949
'ref', lineno)

lib/matplotlib/mpl-data/matplotlibrc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
## This 7AE2 is a sample Matplotlib configuration file - you can find a copy
66
## of it on your system in site-packages/matplotlib/mpl-data/matplotlibrc
77
## (relative to your Python installation location).
8-
##
9-
## You should find a copy of it on your system at
10-
## site-packages/matplotlib/mpl-data/matplotlibrc (relative to your Python
11-
## installation location). DO NOT EDIT IT!
8+
## DO NOT EDIT IT!
129
##
1310
## If you wish to change your default style, copy this file to one of the
1411
## following locations:

0 commit comments

Comments
 (0)
0