Skip to content

Commit d7c40ae

Browse files
authored
Cleanup some references to rcParams in docs. (#15801)
Cleanup some references to rcParams in docs.
2 parents b015209 + d572e15 commit d7c40ae

File tree

6 files changed

+16
-17
lines changed

6 files changed

+16
-17
lines changed

doc/faq/howto_faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ off on a per-axis basis::
103103

104104
ax.get_xaxis().get_major_formatter().set_useOffset(False)
105105

106-
set the rcParam ``axes.formatter.useoffset``, or use a different
106+
set :rc:`axes.formatter.useoffset`, or use a different
107107
formatter. See :mod:`~matplotlib.ticker` for details.
108108

109109
.. _howto-transparent:

doc/users/dflt_style_changes.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ The following changes were made to the default behavior of
276276
`~matplotlib.axes.Axes.scatter`
277277

278278
- The default size of the elements in a scatter plot is now based on
279-
the rcParam ``lines.markersize`` so it is consistent with ``plot(X,
279+
:rc:`lines.markersize` so it is consistent with ``plot(X,
280280
Y, 'o')``. The old value was 20, and the new value is 36 (6^2).
281281
- Scatter markers no longer have a black edge.
282282
- If the color of the markers is not specified it will follow the
@@ -643,7 +643,7 @@ Hatching
643643
The color of the lines in the hatch is now determined by
644644

645645
- If an edge color is explicitly set, use that for the hatch color
646-
- If the edge color is not explicitly set, use ``rcParam['hatch.color']`` which
646+
- If the edge color is not explicitly set, use :rc:`hatch.color` which
647647
is looked up at artist creation time.
648648

649649
The width of the lines in a hatch pattern is now configurable by the
@@ -948,8 +948,8 @@ sets the view limits to 5% wider than the data range.
948948

949949
The size of the padding in the x and y directions is controlled by the
950950
``'axes.xmargin'`` and ``'axes.ymargin'`` rcParams respectively. Whether
951-
the view limits should be 'round numbers' is controlled by the
952-
``'axes.autolimit_mode'`` rcParam. In the original ``'round_number'`` mode,
951+
the view limits should be 'round numbers' is controlled by
952+
:rc:`axes.autolimit_mode`. In the original ``'round_number'`` mode,
953953
the view limits coincide with ticks.
954954

955955
The previous default can be restored by using::
@@ -1132,7 +1132,7 @@ but cannot be controlled independently via ``rcParams``.
11321132

11331133
With the default of ``rcParams['axes.formatter.useoffset'] = True``,
11341134
an offset will be used when it will save 4 or more digits. This can
1135-
be controlled with the new rcParam, ``axes.formatter.offset_threshold``.
1135+
be controlled with the new :rc:`axes.formatter.offset_threshold`.
11361136
To restore the previous behavior of using an offset to save 2 or more
11371137
digits, use ``rcParams['axes.formatter.offset_threshold'] = 2``.
11381138

lib/matplotlib/backend_bases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2125,8 +2125,8 @@ def print_figure(self, filename, dpi=None, facecolor=None, edgecolor=None,
21252125
@classmethod
21262126
def get_default_filetype(cls):
21272127
"""
2128-
Get the default savefig file format as specified in rcParam
2129-
``savefig.format``. Returned string excludes period. Overridden
2128+
Get the default savefig file format as specified in
2129+
:rc:`savefig.format`. Returned string excludes period. Overridden
21302130
in backends that only support a single file type.
21312131
"""
21322132
return rcParams['savefig.format']

lib/matplotlib/ticker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
2424
ax.get_xaxis().get_major_formatter().set_useOffset(False)
2525
26-
set the rcParam ``axes.formatter.useoffset=False`` to turn it off
26+
Set :rc:`axes.formatter.useoffset` to turn it off
2727
globally, or set a different formatter.
2828
2929
Tick locating

tutorials/text/mathtext.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,8 @@
5151
# $ % & ~ _ ^ \ { } \( \) \[ \]
5252
5353
have special meaning outside of math mode in TeX. Therefore, these
54-
characters will behave differently depending on the rcParam ``text.usetex``
55-
flag. See the :doc:`usetex tutorial </tutorials/text/usetex>` for more
56-
information.
54+
characters will behave differently depending on :rc:`text.usetex`. See the
55+
:doc:`usetex tutorial </tutorials/text/usetex>` for more information.
5756
5857
Subscripts and superscripts
5958
---------------------------
@@ -159,7 +158,7 @@
159158
160159
.. note::
161160
162-
This default can be changed using the ``mathtext.default`` rcParam. This is
161+
This default can be changed using :rc:`mathtext.default`. This is
163162
useful, for example, to use the same font as regular non-math text for math
164163
text, by setting it to ``regular``.
165164
@@ -274,7 +273,7 @@
274273
275274
mathtext also provides a way to use custom fonts for math. This method is
276275
fairly tricky to use, and should be considered an experimental feature for
277-
patient users only. By setting the rcParam ``mathtext.fontset`` to ``custom``,
276+
patient users only. By setting :rc:`mathtext.fontset` to ``custom``,
278277
you can then set the following parameters, which control which font file to use
279278
for a particular set of math characters.
280279
@@ -296,8 +295,8 @@
296295
297296
The fonts used should have a Unicode mapping in order to find any
298297
non-Latin characters, such as Greek. If you want to use a math symbol
299-
that is not contained in your custom fonts, you can set the rcParam
300-
``mathtext.fallback_to_cm`` to ``True`` which will cause the mathtext system
298+
that is not contained in your custom fonts, you can set
299+
:rc:`mathtext.fallback_to_cm` to ``True`` which will cause the mathtext system
301300
to use characters from the default Computer Modern fonts whenever a particular
302301
character can not be found in the custom font.
303302

tutorials/text/usetex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
# $ % & ~ _ ^ \ { } \( \) \[ \]
7171
7272
Therefore, these characters will behave differently depending on
73-
the rcParam ``text.usetex`` flag.
73+
:rc:`text.usetex`.
7474
7575
.. _usetex-unicode:
7676

0 commit comments

Comments
 (0)