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
/
graphs
/
axis.py
blob
14e260988b76a319fdd2fda012804f3f02c152ee
1
from
pyx
import
*
2
3
g
=
graph
.
graphxy
(
width
=
8
,
4
x
=
graph
.
axis
.
log
(
min
=
1e-1
,
max
=
1
e4
),
5
y
=
graph
.
axis
.
lin
(
max
=
5
))
6
g
.
plot
(
graph
.
data
.
function
(
"y(x)=tan(log(1/x))**2"
))
7
g
.
writeEPSfile
(
"axis"
)
8
g
.
writePDFfile
(
"axis"
)