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
fix cross-device link error
[PyX.git]
/
examples
/
3dgraphs
/
grid.py
blob
4a206a7e1c9053bd2200f5b52d400afb25e9cd67
1
#!/usr/bin/env python
2
from
pyx
import
*
3
4
g
=
graph
.
graphxyz
(
size
=
4
,
z
=
graph
.
axis
.
lin
(
min
=
0.001
))
5
g
.
plot
(
graph
.
data
.
file
(
"grid.dat"
,
x
=
1
,
y
=
2
,
z
=
3
), [
graph
.
style
.
grid
()])
6
g
.
writeEPSfile
(
"grid"
)
7
g
.
writePDFfile
(
"grid"
)
8
g
.
writeSVGfile
(
"grid"
)