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
prevent double call of _cleanup, which harms usefiles (and is a bad idea in general)
[PyX.git]
/
examples
/
splitgraphs
/
splitatvalue.py
blob
4150bb23516624d192197b21c92532e65c2e428a
1
from
pyx
import
*
2
3
pf
=
graph
.
data
.
paramfunction
4
5
g
=
graph
.
graphxy
(
width
=
8
,
x
=
graph
.
axis
.
split
())
6
g
.
plot
(
pf
(
"k"
, -
1
,
1
,
7
"x, y = splitatvalue(k, -0.9, 0.9), k**100"
,
8
points
=
1000
))
9
g
.
writeEPSfile
(
"splitatvalue"
)
10
g
.
writePDFfile
(
"splitatvalue"
)
11
g
.
writeSVGfile
(
"splitatvalue"
)