We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2880b1 commit fd5cfbfCopy full SHA for fd5cfbf
doc/users/next_whats_new/mathtext.rst
@@ -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 text.
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