repo.or.cz
/
PyX.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add chroot config option needed to use a chrooted TeX installation
[PyX.git]
/
manual
/
graph2.py
blob
20838f402036d9f9ad95f086e72939de0e6dcfbc
1
from
pyx
import
*
2
g
=
graph
.
graphxy
(
width
=
8
)
3
g
.
plot
(
graph
.
data
.
file
(
"graph.dat"
,
x
=
1
,
y
=
2
))
4
g
.
plot
(
graph
.
data
.
function
(
"y(x)=x**2"
))
5
g
.
writePDFfile
()