GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
simple_plot.py
1 #!/usr/bin/env python
2 """
3 Example: simple line plot.
4 Show how to make and save a simple line plot with labels, title and grid
5 """
6 from pylab import *
7 
8 figure()
9 t = arange(0.0, 1.0+0.01, 0.01)
10 s = cos(2*2*pi*t)
11 plot(t, s, '-', lw=2)
12 
13 xlabel('time (s)')
14 ylabel('voltage (mV)')
15 title('About as simple as it gets, folks')
16 grid(True)
17 show()