Skip to content

Commit b87c1b4

Browse files
committed
"What's New" entry for Mathtext \underline.
1 parent 4bb5284 commit b87c1b4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Underlining text while using Mathtext
2+
-------------------------------------
3+
4+
Mathtext now supports the ``\underline`` command.
5+
6+
.. code-block:: python
7+
8+
import matplotlib.pyplot as plt
9+
plt.text(0.4, 0.7, r'This is $\underline{underlined}$ text.')
10+
plt.text(0.4, 0.3, r'So is $\underline{\mathrm{this}}$.')
11+
plt.show()

0 commit comments

Comments
 (0)