Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Backport PR #23750 on branch v3.5.3-doc (Fix rcParams documentation) #23754

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/sphinxext/custom_roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 1 addition & 4 deletions lib/matplotlib/mpl-data/matplotlibrc
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down