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

Skip to content

Commit 699d8f6

Browse files
committed
Fix mathtext_demo to use markup="tex" kwarg.
svn path=/trunk/matplotlib/; revision=3688
1 parent 63b3c7f commit 699d8f6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/mathtext_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
x = npy.arange(0.0, 3.0, 0.1)
1414

1515
ax.grid(True)
16-
ax.set_xlabel(r'$\Delta_i^j$', fontsize=20)
17-
ax.set_ylabel(r'$\Delta_{i+1}^j$', fontsize=20)
16+
ax.set_xlabel(r'$\Delta_i^j$', fontsize=20, markup="tex")
17+
ax.set_ylabel(r'$\Delta_{i+1}^j$', fontsize=20, markup="tex")
1818
tex = r'$\mathcal{R}\prod_{i=\alpha_{i+1}}^\infty a_i\sin(2 \pi f x_i)$'
1919

2020
ax.text(1, 1.6, tex, fontsize=20, va='bottom', markup="tex")

0 commit comments

Comments
 (0)