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
resolve the ipython import issue related to ipython bug 3994 by moving mkipynb to...
[PyX.git]
/
examples
/
path
/
arclen.py
blob
59ca5052d95aded1192d81e8cd2c74d3d399d6ba
1
from
pyx
import
*
2
3
c
=
canvas
.
canvas
()
4
5
p1
=
path
.
curve
(
0
,
0
,
1
,
0
,
1
,
1
,
2
,
1
)
6
p2
=
path
.
line
(
0
,
0
,
p1
.
arclen
(),
0
)
7
c
.
stroke
(
p1
)
8
c
.
stroke
(
p2
)
9
10
c
.
writeEPSfile
(
"arclen"
)
11
c
.
writePDFfile
(
"arclen"
)