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 autodoc; pyx theme for manual
[PyX.git]
/
examples
/
graphs
/
lissajous.py
blob
36b5fb519d4dbf18616307209d4b9d5318addba1
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"
)