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
fix a regression of requiring both, a ticklevel and a labellevel (removing ticks...
[PyX/mjg.git]
/
examples
/
text
/
textbox.py
blob
f6b0bdae4c3773b4273edd55fc142be2dd9c7ba1
1
from
pyx
import
*
2
unit
.
set
(
xscale
=
3
)
3
4
tbox
=
text
.
text
(
0
,
0
,
r
"Boxed text"
)
5
tpath
=
tbox
.
bbox
().
enlarged
(
3
*
unit
.
x_pt
).
path
()
6
7
c
=
canvas
.
canvas
()
8
c
.
draw
(
tpath
, [
deco
.
filled
([
color
.
cmyk
.
Yellow
]),
deco
.
stroked
()])
9
c
.
insert
(
tbox
)
10
c
.
writeEPSfile
(
"textbox"
)
11
c
.
writePDFfile
(
"textbox"
)