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
/
bargraphs
/
minimal.py
blob
166f96662a564b803cd327dd6ccaadf636d253f0
1
from
pyx
import
*
2
3
g
=
graph
.
graphxy
(
width
=
8
,
x
=
graph
.
axis
.
bar
())
4
g
.
plot
(
graph
.
data
.
file
(
"minimal.dat"
,
xname
=
0
,
y
=
2
), [
graph
.
style
.
bar
()])
5
g
.
writeEPSfile
(
"minimal"
)
6
g
.
writePDFfile
(
"minimal"
)
7
g
.
writeSVGfile
(
"minimal"
)