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
prevent double call of _cleanup, which harms usefiles (and is a bad idea in general)
[PyX.git]
/
examples
/
drawing
/
path.py
blob
3774b5093cc96e729b621f20ee174c05891b4b16
1
from
pyx
import
*
2
3
c
=
canvas
.
canvas
()
4
c
.
stroke
(
path
.
line
(
0
,
0
,
3
,
0
))
5
c
.
stroke
(
path
.
rect
(
0
,
1
,
1
,
1
))
6
c
.
fill
(
path
.
circle
(
2.5
,
1.5
,
0.5
))
7
c
.
writeEPSfile
(
"path"
)
8
c
.
writePDFfile
(
"path"
)
9
c
.
writeSVGfile
(
"path"
)