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

Skip to content

Commit e081ef4

Browse files
committed
Fix mathtext in example.
svn path=/trunk/matplotlib/; revision=4532
1 parent 4168c28 commit e081ef4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/text_themes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def f(t):
1717

1818
plot(t1, f(t1), 'bo', t2, f(t2), 'k')
1919
title('Damped exponential decay', font, size='large', color='r')
20-
text(2, 0.65, 'cos(2 pi t) exp(-t)', font, color='k', family='monospace' )
20+
text(2, 0.65, r'$\cos(2 \pi t) \exp(-t)$', color='k')
2121
xlabel('time (s)', font, style='italic')
2222
ylabel('voltage (mV)', font)
2323

0 commit comments

Comments
 (0)