Skip to content

Commit

Permalink
Backport PR matplotlib#27096: make fonts.py, mathtext.py, text_intro.…
Browse files Browse the repository at this point in the history
…py confirm to docs guidelines
  • Loading branch information
story645 authored and meeseeksmachine committed Oct 15, 2023
1 parent cb5ba11 commit 0e0de49
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
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

0 comments on commit 0e0de49

Please sign in to comment.