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