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
introduced tipagraph to get faq to work even without tipa package present
[PyX/mjg.git]
/
manual
/
graph2.py
blob
1ec5ff85e417e1434ac88e5a08a743d49ac2a3cd
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**2"
))
5
g
.
writeEPSfile
(
"graph2"
)