rename texmessage.loadfd to texmessage.loaddef and allow for .def and .fd files
[PyX/mjg.git] / examples / splitgraphs / splitatvalue.py
blob57daf8d694a93ccea953b4d9b1a97d5c676e5d04
1 # You can use the splitatvalue function to split data at
2 # certain values. When splitting at several positions, the
3 # splitatvalue function marks odd regions to be a "None",
4 # which will in the end be ignored by a splitaxis.
6 from pyx import *
8 pf = graph.data.paramfunction
10 g = graph.graphxy(width=8, x=graph.axis.split())
11 g.plot(pf("k", -1, 1,
12 "x, y = splitatvalue(k, -0.9, 0.9), k**100",
13 points=1000))
14 g.writeEPSfile("splitatvalue")
15 g.writePDFfile("splitatvalue")