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
/
graphs
/
lissajous.py
blob
f44d65d33260e0eb36506940269f4676be428d7a
1
from
math
import
pi
2
from
pyx
import
*
3
4
g
=
graph
.
graphxy
(
width
=
8
)
5
g
.
plot
(
graph
.
data
.
paramfunction
(
"k"
,
0
,
2
*
pi
,
"x, y = sin(2*k), cos(3*k)"
))
6
g
.
writeEPSfile
(
"lissajous"
)
7
g
.
writePDFfile
(
"lissajous"
)
8
g
.
writeSVGfile
(
"lissajous"
)