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
allow empty return value for realpolyroots
[PyX/mjg.git]
/
examples
/
hello.py
blob
b6b524dc75c89a1c40094b8083c301493a318e2d
1
from
pyx
import
*
2
3
c
=
canvas
.
canvas
()
4
c
.
text
(
0
,
0
,
"Hello, world!"
)
5
c
.
stroke
(
path
.
line
(
0
,
0
,
2
,
0
))
6
c
.
writeEPSfile
(
"hello"
)
7
c
.
writePDFfile
(
"hello"
)