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
3d function plots
[PyX/mjg.git]
/
examples
/
bargraphs
/
minimal.py
blob
79b262b26f7a973eff9584bfb9e3d8c47756f02f
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"
)