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 cross-device link error
[PyX.git]
/
examples
/
graphstyles
/
histogram.py
blob
558ed45302dc379aae743cce2a0368bd7349018e
1
from
pyx
import
*
2
3
d
=
graph
.
data
.
points
([(
1
,
0.3
),
4
(
2
, -
0.7
),
5
(
3
, -
0.3
),
6
(
4
,
0.8
),
7
(
5
,
0.5
)],
x
=
1
,
y
=
2
)
8
9
g
=
graph
.
graphxy
(
width
=
8
)
10
g
.
plot
(
d
, [
graph
.
style
.
histogram
()])
11
g
.
writeEPSfile
(
"histogram"
)
12
g
.
writePDFfile
(
"histogram"
)
13
g
.
writeSVGfile
(
"histogram"
)