Menu

[r5978]: / trunk / htdocs / screenshots / text_themes.py  Maximize  Restore  History

Download this file

18 lines (12 with data), 396 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
from pylab import *
font = {'fontname' : 'Courier',
'color' : 'r',
'fontweight' : 'bold',
'fontsize' : 11}
t = arange(0.0, 5.0, 0.1)
plot(t, cos(2*pi*t)*exp(-t), '-ko', mfc='b')
title('Damped exponential decay', font, fontsize=12)
text(2, 0.65, r'\rm{cos}(2 \pi t) \rm{exp}(-t)', font, color='k')
xlabel('time (s)', font)
ylabel('voltage (mV)', font)
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.