Skip to content

Commit 31b374c

Browse files
authored
Merge pull request matplotlib#25727 from SnorfYang/fix-docs
Doc: Replace matplotlibrc.template
2 parents 7f05570 + 425d1e6 commit 31b374c

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

lib/matplotlib/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ def _rc_params_in_file(fname, transform=lambda x: x, fail_on_error=False):
908908
_log.warning("""
909909
Bad key %(key)s in file %(fname)s, line %(line_no)s (%(line)r)
910910
You probably need to get an updated matplotlibrc file from
911-
https://github.com/matplotlib/matplotlib/blob/%(version)s/matplotlibrc.template
911+
https://github.com/matplotlib/matplotlib/blob/%(version)s/lib/matplotlib/mpl-data/matplotlibrc
912912
or from the matplotlib source distribution""",
913913
dict(key=key, fname=fname, line_no=line_no,
914914
line=line.rstrip('\n'), version=version))

lib/matplotlib/font_manager.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -878,8 +878,7 @@ def set_math_fontfamily(self, fontfamily):
878878
The name of the font family.
879879
880880
Available font families are defined in the
881-
matplotlibrc.template file
882-
:ref:`here <customizing-with-matplotlibrc-files>`
881+
:ref:`default matplotlibrc file <customizing-with-matplotlibrc-files>`.
883882
884883
See Also
885884
--------

lib/matplotlib/rcsetup.py

+6-5
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,
@@ -1256,7 +1256,8 @@ def _convert_validator_spec(key, conv):
12561256
# altogether. For that use `matplotlib.style.use("classic")`.
12571257
"_internal.classic_mode": validate_bool
12581258
}
1259-
_hardcoded_defaults = { # Defaults not inferred from matplotlibrc.template...
1259+
_hardcoded_defaults = { # Defaults not inferred from
1260+
# lib/matplotlib/mpl-data/matplotlibrc...
12601261
# ... because they are private:
12611262
"_internal.classic_mode": False,
12621263
# ... because they are deprecated:

lib/matplotlib/text.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ def set_math_fontfamily(self, fontfamily):
11031103
The name of the font family.
11041104
11051105
Available font families are defined in the
1106-
:ref:`matplotlibrc.template file
1106+
:ref:`default matplotlibrc file
11071107
<customizing-with-matplotlibrc-files>`.
11081108
11091109
See Also

0 commit comments

Comments
 (0)