Menu

[r101]: / trunk / htdocs / screenshots / simple_plot.py  Maximize  Restore  History

Download this file

14 lines (10 with data), 264 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
from matplotlib.matlab import *
t = arange(0.0, 2.0, 0.01)
s = sin(2*pi*t)
plot(t, s)
xlabel('time (s)')
ylabel('voltage (mV)')
title('About as simple as it gets, folks')
savefig('simple_plot_small.png', dpi=60)
savefig('simple_plot_large.png', dpi=120)
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.