repo.or.cz
/
PyX
/
mjg.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
chmod
[PyX/mjg.git]
/
manual
/
graph1.py
blob
788a7173d88d2705ce1d03930ab7a6253a1d63a5
1
#!/usr/bin/env python
2
import
sys
3
sys
.
path
[:
0
] = [
".."
]
4
5
from
pyx
import
*
6
from
pyx
.
graph
import
*
7
8
c
=
canvas
.
canvas
()
9
g
=
c
.
insert
(
graphxy
(
width
=
10
))
10
g
.
plot
(
data
(
"graph1.dat"
,
x
=
1
,
y
=
2
))
11
c
.
writetofile
(
"graph1"
)