Skip to content

Backport PR #27096 on branch v3.8.0-doc (make fonts.py, mathtext.py, text_intro.py confirm to docs guidelines) #27102

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
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions galleries/users_explain/text/fonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
- Limited support with Matplotlib

Font subsetting
~~~~~~~~~~~~~~~
^^^^^^^^^^^^^^^

The PDF and PostScript formats support embedding fonts in files, allowing the
display program to correctly render the text, independent of what fonts are
Expand All @@ -93,7 +93,7 @@
Currently Type 3, Type 42, and TrueType fonts are subsetted. Type 1 fonts are not.

Core Fonts
~~~~~~~~~~
^^^^^^^^^^

In addition to the ability to embed fonts, as part of the `PostScript
<https://en.wikipedia.org/wiki/PostScript_fonts#Core_Font_Set>`_ and `PDF
Expand Down
2 changes: 1 addition & 1 deletion galleries/users_explain/text/mathtext.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@
# (not minus).
#
# Custom fonts
# ~~~~~~~~~~~~
# ^^^^^^^^^^^^
# Mathtext also provides a way to use custom fonts for math. This method is
# fairly tricky to use, and should be considered an experimental feature for
# patient users only. By setting :rc:`mathtext.fontset` to ``custom``,
Expand Down
8 changes: 4 additions & 4 deletions galleries/users_explain/text/text_intro.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
# locations, and how they are labelled.
#
# Terminology
# ~~~~~~~~~~~
# ^^^^^^^^^^^
#
# *Axes* have an `matplotlib.axis.Axis` object for the ``ax.xaxis`` and
# ``ax.yaxis`` that contain the information about how the labels in the axis
Expand All @@ -254,7 +254,7 @@
# that format the tick labels.
#
# Simple ticks
# ~~~~~~~~~~~~
# ^^^^^^^^^^^^
#
# It is often convenient to simply define the
# tick values, and sometimes the tick labels, overriding the default
Expand Down Expand Up @@ -287,7 +287,7 @@

# %%
# Tick Locators and Formatters
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#
# Instead of making a list of all the ticklabels, we could have
# used `matplotlib.ticker.StrMethodFormatter` (new-style ``str.format()``
Expand Down Expand Up @@ -380,7 +380,7 @@ def formatoddticks(x, pos):

# %%
# Dateticks
# ~~~~~~~~~
# ^^^^^^^^^
#
# Matplotlib can accept `datetime.datetime` and `numpy.datetime64`
# objects as plotting arguments. Dates and times require special
Expand Down