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

Skip to content

Commit 207de3d

Browse files
authored
Merge pull request #25754 from meeseeksmachine/auto-backport-of-pr-25727-on-v3.7.x
Backport PR #25727 on branch v3.7.x (Doc: Replace matplotlibrc.template)
2 parents 6f2ea43 + 9107496 commit 207de3d

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

lib/matplotlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ def _rc_params_in_file(fname, transform=lambda x: x, fail_on_error=False):
896896
_log.warning("""
897897
Bad key %(key)s in file %(fname)s, line %(line_no)s (%(line)r)
898898
You probably need to get an updated matplotlibrc file from
899-
https://github.com/matplotlib/matplotlib/blob/%(version)s/matplotlibrc.template
899+
https://github.com/matplotlib/matplotlib/blob/%(version)s/lib/matplotlib/mpl-data/matplotlibrc
900900
or from the matplotlib source distribution""",
901901
dict(key=key, fname=fname, line_no=line_no,
902902
line=line.rstrip('\n'), version=version))

lib/matplotlib/font_manager.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -876,8 +876,7 @@ def set_math_fontfamily(self, fontfamily):
876876
The name of the font family.
877877
878878
Available font families are defined in the
879-
matplotlibrc.template file
880-
:ref:`here <customizing-with-matplotlibrc-files>`
879+
:ref:`default matplotlibrc file <customizing-with-matplotlibrc-files>`.
881880
882881
See Also
883882
--------

lib/matplotlib/rcsetup.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
1010
The default values of the rc settings are set in the default matplotlibrc file.
1111
Any additions or deletions to the parameter set listed here should also be
12-
propagated to the :file:`matplotlibrc.template` in Matplotlib's root source
13-
directory.
12+
propagated to the :file:`lib/matplotlib/mpl-data/matplotlibrc` in Matplotlib's
13+
root source directory.
1414
"""
1515

1616
import ast
@@ -808,8 +808,8 @@ def _convert_validator_spec(key, conv):
808808
# Mapping of rcParams to validators.
809809
# Converters given as lists or _ignorecase are converted to ValidateInStrings
810810
# immediately below.
811-
# The rcParams defaults are defined in matplotlibrc.template, which gets copied
812-
# to matplotlib/mpl-data/matplotlibrc by the setup script.
811+
# The rcParams defaults are defined in lib/matplotlib/mpl-data/matplotlibrc, which
812+
# gets copied to matplotlib/mpl-data/matplotlibrc by the setup script.
813813
_validators = {
814814
"backend": validate_backend,
815815
"backend_fallback": validate_bool,
@@ -1255,7 +1255,8 @@ def _convert_validator_spec(key, conv):
12551255
# altogether. For that use `matplotlib.style.use("classic")`.
12561256
"_internal.classic_mode": validate_bool
12571257
}
1258-
_hardcoded_defaults = { # Defaults not inferred from matplotlibrc.template...
1258+
_hardcoded_defaults = { # Defaults not inferred from
1259+
# lib/matplotlib/mpl-data/matplotlibrc...
12591260
# ... because they are private:
12601261
"_internal.classic_mode": False,
12611262
# ... because they are deprecated:

lib/matplotlib/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ def set_math_fontfamily(self, fontfamily):
11381138
The name of the font family.
11391139
11401140
Available font families are defined in the
1141-
:ref:`matplotlibrc.template file
1141+
:ref:`default matplotlibrc file
11421142
<customizing-with-matplotlibrc-files>`.
11431143
11441144
See Also

0 commit comments

Comments
 (0)