3 from pyx
.graph
import axis
5 # we here use parters and texters which are explained in the examples below
6 log2parter
= axis
.parter
.log([axis
.parter
.preexp([axis
.tick
.rational(1)], 4),
7 axis
.parter
.preexp([axis
.tick
.rational(1)], 2)])
8 log2texter
= axis
.texter
.exponential(nomantissaexp
=r
"{2^{%s}}",
9 mantissamax
=axis
.tick
.rational(2))
11 g
= graph
.graphxy(width
=10,
12 x
=axis
.log(min=1, max=1024),
13 y
=axis
.log(min=1, max=1024, parter
=log2parter
),
14 y2
=axis
.log(min=1, max=1024, parter
=log2parter
, texter
=log2texter
))