Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4730c8a

Browse files
committed
Add new feature note
1 parent 4334341 commit 4730c8a

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
10+
plt.text(0.4, 0.7, r'This is $\underline{underlined}$ text.')
11+
plt.text(0.4, 0.3, r'So is $\underline{\mathrm{this}}$.')
12+
plt.show()

0 commit comments

Comments
 (0)