diff --git a/tutorials/text/mathtext.py b/tutorials/text/mathtext.py index ab4f93de75f4..85128e7efbaf 100644 --- a/tutorials/text/mathtext.py +++ b/tutorials/text/mathtext.py @@ -15,6 +15,7 @@ to generate their text (see :ref:`sphx_glr_tutorials_text_usetex.py`). """ +############################################################################### # Any text element can use math text. You should use raw strings (precede the # quotes with an ``'r'``), and surround the math text with dollar signs ($), as in # TeX. Regular text and mathtext can be interleaved within the same string. @@ -32,7 +33,7 @@ # `_. # # Here is a simple example:: - +# # # plain text # plt.title('alpha > beta') # @@ -151,6 +152,8 @@ # # \sqrt[3]{x} # +# .. _mathtext-fonts: +# # Fonts # ----- # diff --git a/tutorials/text/text_props.py b/tutorials/text/text_props.py index 9afca3fa7777..d0cf823d94f1 100644 --- a/tutorials/text/text_props.py +++ b/tutorials/text/text_props.py @@ -143,7 +143,9 @@ # Default Font # ============== # -# The base default font is controlled by a set of rcParams: +# The base default font is controlled by a set of rcParams. To set the font +# for mathematical expressions, use the rcParams beginning with ``mathtext`` +# (see :ref:`mathtext `). # # +---------------------+----------------------------------------------------+ # | rcParam | usage | @@ -212,7 +214,7 @@ # # or set it in your :file:`.matplotlibrc` file:: # -# font.sans-serif: Source Han Sans TW, Ariel, sans-serif +# font.sans-serif: Source Han Sans TW, Arial, sans-serif # # To control the font used on per-artist basis use the ``'name'``, # ``'fontname'`` or ``'fontproperties'`` kwargs documented :ref:`above