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
fix directory layout of tagging dir
[PyX.git]
/
examples
/
bargraphs
/
compare.py
blob
b5ff247fff8620d8ff0979dafd4caa3cd91d3bba
1
from
pyx
import
*
2
3
g
=
graph
.
graphxy
(
width
=
8
,
x
=
graph
.
axis
.
nestedbar
())
4
g
.
plot
([
graph
.
data
.
file
(
"minimal.dat"
,
xname
=
"$0, 0"
,
y
=
2
),
5
graph
.
data
.
file
(
"minimal.dat"
,
xname
=
"$0, 1"
,
y
=
3
)],
6
[
graph
.
style
.
bar
()])
7
g
.
writeEPSfile
(
"compare"
)
8
g
.
writePDFfile
(
"compare"
)