diff --git a/doc/sphinxext/custom_roles.py b/doc/sphinxext/custom_roles.py index 38d5bf9b8b71..3dcecc3df733 100644 --- a/doc/sphinxext/custom_roles.py +++ b/doc/sphinxext/custom_roles.py @@ -43,7 +43,7 @@ def depart_query_reference_node(self, node): def rcparam_role(name, rawtext, text, lineno, inliner, options={}, content=[]): # Generate a pending cross-reference so that Sphinx will ensure this link # isn't broken at some point in the future. - title = f'rcParam["{text}"]' + title = f'rcParams["{text}"]' target = 'matplotlibrc-sample' ref_nodes, messages = inliner.interpreted(title, f'{title} <{target}>', 'ref', lineno) diff --git a/lib/matplotlib/mpl-data/matplotlibrc b/lib/matplotlib/mpl-data/matplotlibrc index 106d881ce88c..5e2b0455e180 100644 --- a/lib/matplotlib/mpl-data/matplotlibrc +++ b/lib/matplotlib/mpl-data/matplotlibrc @@ -5,10 +5,7 @@ ## This is a sample Matplotlib configuration file - you can find a copy ## of it on your system in site-packages/matplotlib/mpl-data/matplotlibrc ## (relative to your Python installation location). -## -## You should find a copy of it on your system at -## site-packages/matplotlib/mpl-data/matplotlibrc (relative to your Python -## installation location). DO NOT EDIT IT! +## DO NOT EDIT IT! ## ## If you wish to change your default style, copy this file to one of the ## following locations: