GnuCash
5.6-150-g038405b370+
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
~
+
Variables
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
Related Functions
+
Files
File List
+
Globals
+
All
a
b
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Functions
c
d
f
g
i
n
o
p
q
s
t
u
x
Variables
+
Typedefs
a
b
g
l
o
p
q
s
t
+
Enumerations
c
d
f
g
p
q
r
s
u
+
Enumerator
a
c
d
e
g
n
q
s
t
u
w
+
Macros
a
c
e
f
g
m
n
o
p
q
s
t
v
x
y
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
gnucash
python
pycons
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()
Generated by
1.8.14