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
implemented font slanting via psfont.map
[PyX/mjg.git]
/
examples
/
graphstyles
/
histogram.py
blob
9cd403e9cef6507cf59536f1e54077a6826fd46d
1
from
pyx
import
*
2
3
d
=
graph
.
data
.
list
([(
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"
)