From 18e95c89a4cf9db33b72038766033bf6d2356664 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Fri, 26 Aug 2022 18:28:31 -0400 Subject: [PATCH] Backport PR #23750: Fix rcParams documentation --- doc/sphinxext/custom_roles.py | 2 +- lib/matplotlib/mpl-data/matplotlibrc | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) 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 e65e3c209030..8dff1a6c6c33 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: