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
3d function plots
[PyX/mjg.git]
/
examples
/
3dgraphs
/
surface.py
blob
d8c6b5fd8609cad369adf6181b7de968f63a96f5
1
#!/usr/bin/env python
2
from
pyx
import
*
3
4
g
=
graph
.
graphxyz
(
size
=
4
,
x2
=
None
,
y2
=
None
)
5
g
.
plot
(
graph
.
data
.
file
(
"surface.dat"
,
x
=
1
,
y
=
2
,
z
=
3
), [
graph
.
style
.
surface
()])
6
g
.
dodata
()
7
g
.
writeEPSfile
(
"surface"
)
8
g
.
writePDFfile
(
"surface"
)