File tree 2 files changed +13
-5
lines changed
galleries/users_explain/text
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -327,6 +327,10 @@ This allows users to set the location of the legend in a more flexible and consi
327
327
Mathtext improvements
328
328
=====================
329
329
330
+ Improvements are to Mathtext, Matplotlib's native TeX-like mathematics parser
331
+ (see :ref: `mathtext `, not to be confused with Matplotlib using LaTeX directly:
332
+ :ref: `usetex `).
333
+
330
334
Boldsymbol mathtext command ``\boldsymbol ``
331
335
-------------------------------------------
332
336
Original file line number Diff line number Diff line change 8
8
================================
9
9
10
10
Matplotlib implements a lightweight TeX expression parser and layout engine and
11
- *Mathtext* is the subset of Tex markup that this engine supports. Any string can
12
- be processed as Mathtext by placing the string inside a pair of dollar signs
13
- ``'$'``. Mathtext often contains many backslashes ``'\'``; so that the backslashes
14
- do not need to be escaped, Mathtext is often written using raw strings. For
15
- example:
11
+ *Mathtext* is the subset of Tex markup that this engine supports. Note that
12
+ Matplotlib can also render all text directly using TeX if :rc:`text.usetex` is
13
+ *True*; see :ref:`usetex` for more details. Mathtext support is available
14
+ if :rc:`text.usetex` is *False*.
15
+
16
+ Any string can be processed as Mathtext by placing the string inside a pair of
17
+ dollar signs ``'$'``. Mathtext often contains many backslashes ``'\'``; so that
18
+ the backslashes do not need to be escaped, Mathtext is often written using raw
19
+ strings. For example:
16
20
"""
17
21
18
22
import matplotlib .pyplot as plt
You can’t perform that action at this time.
0 commit comments