Menu

[r472]: / trunk / htdocs / screenshots / mathtext_demo.py  Maximize  Restore  History

Download this file

14 lines (12 with data), 439 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
from matplotlib.matlab import *
plot([1,2,3])
xlabel(r'$\Delta_i$')
ylabel(r'$\Delta_{i+1}$', # no rotation yet for mathtext
verticalalignment='center',
horizontalalignment='right',
rotation='horizontal')
tex = r'$\cal{R}\prod_{i=\alpha_{i+1}}^\infty a_i\rm{sin}(2 \pi f x_i)$'
text(0.4, 2.4, tex, fontsize=20)
title(r'$\Delta_i \/ \rm{versus} \/ \Delta_{i+1}$', fontsize=15)
savefig('mathtext_demo', dpi=100)
show()
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.