Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9649d83

Browse filesBrowse files
committed
Add overset/underset whatsnew entry
1 parent 56d9e7c commit 9649d83
Copy full SHA for 9649d83

File tree

Expand file treeCollapse file tree

1 file changed

+14
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+14
-0
lines changed

‎doc/users/next_whats_new/mathtext.rst

Copy file name to clipboard
+14Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
``matplotlib.mathtext`` now supports *overset* and *underset* LaTeX symbols
2+
---------------------------------------------------------------------------
3+
4+
`.mathtext`, the default TeX layout engine which is shipped along with
5+
Matplotlib now supports symbols like *overset* and *underset*.
6+
7+
The structure which should be followed: "\overset{body}{annotation}" or
8+
"\underset{body}{annotation}", where *body* would be the text "above" or
9+
"below" the *annotation* - the baseline character.
10+
11+
.. plot::
12+
13+
math_expr = r"$ x \overset{f}{\rightarrow} y \underset{f}{\leftarrow} z $"
14+
plt.text(0.4, 0.5, math_expr, usetex=False)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.