Skip to content

Commit 5ed2a3a

Browse files
committed
Add a sentence mentioning that mathtext is not controlled with font rc params
1 parent f5f3d79 commit 5ed2a3a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tutorials/text/mathtext.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@
151151
#
152152
# \sqrt[3]{x}
153153
#
154+
# .. _mathtext_fonts:
155+
#
154156
# Fonts
155157
# -----
156158
#

tutorials/text/text_props.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@
143143
# Default Font
144144
# ==============
145145
#
146-
# The base default font is controlled by a set of rcParams:
146+
# The base default font is controlled by a set of rcParams. To set the font
147+
# for mathematical expressions, use the rcParams begining with ``mathtext``
148+
# (see :ref:`mathtext <mathtext_fonts>`).
147149
#
148150
# +---------------------+----------------------------------------------------+
149151
# | rcParam | usage |
@@ -212,7 +214,7 @@
212214
#
213215
# or set it in your :file:`.matplotlibrc` file::
214216
#
215-
# font.sans-serif: Source Han Sans TW, Ariel, sans-serif
217+
# font.sans-serif: Source Han Sans TW, Arial, sans-serif
216218
#
217219
# To control the font used on per-artist basis use the ``'name'``,
218220
# ``'fontname'`` or ``'fontproperties'`` kwargs documented :ref:`above

0 commit comments

Comments
 (0)