Skip to content

Add sentence to textprops tutorial mentioning mathtext rcParams #8853

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 11, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix issue with mathtext label not working. The things that fixed it w…
…as adding the line of ### and then adding a # on one of the lines that was missing it
  • Loading branch information
geib7592 committed Jul 11, 2017
commit 3c3b3ad5788b8e9218451842246f16cc79f1c12a
1 change: 1 addition & 0 deletions doc/devel/MEP/MEP12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ Tagging examples will also help users search the example gallery. Although tags
would be a big win for users with specific goals, the plot gallery will remain
the entry point to these examples, and sections could really help users
navigate the gallery. Thus, tags are complementary to this reorganization.
[2]_ [3]_ [4]_ [5]_


.. _PEP8: https://www.python.org/dev/peps/pep-0008/
Expand Down
5 changes: 3 additions & 2 deletions tutorials/text/mathtext.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -32,7 +33,7 @@
# <http://thread.gmane.org/gmane.comp.python.matplotlib.general/19963/focus=19978>`_.
#
# Here is a simple example::

#
# # plain text
# plt.title('alpha > beta')
#
Expand Down Expand Up @@ -151,7 +152,7 @@
#
# \sqrt[3]{x}
#
# .. _mathtext_fonts:
# .. _mathtext-fonts:
#
# Fonts
# -----
Expand Down
2 changes: 1 addition & 1 deletion tutorials/text/text_props.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
#
# The base default font is controlled by a set of rcParams. To set the font
# for mathematical expressions, use the rcParams begining with ``mathtext``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beginning

# (see :ref:`mathtext <mathtext_fonts>`).
# (see :ref:`mathtext <mathtext-fonts>`).
#
# +---------------------+----------------------------------------------------+
# | rcParam | usage |
Expand Down