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
add metapost dir to the packages list
[PyX.git]
/
examples
/
bargraphs
/
changebar.py
blob
207e7da5684dcfb2e86ccaca660d812e62196b54
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
.
changebar
()])
5
g
.
writeEPSfile
(
"changebar"
)
6
g
.
writePDFfile
(
"changebar"
)