diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-02-21 18:08:55 -0800 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-02-21 18:08:55 -0800 |
commit | b24f282bca4af63982937c10835063d3e6e9eb74 (patch) | |
tree | fd8c58601beb3964ccecf4709f7b28944fc1c36b /examples/splitgraphs/splitatvalue.jl | |
parent | 84572be10cdfc852530787a5dc78ddef3e0f23cd (diff) | |
download | PyX.jl-b24f282bca4af63982937c10835063d3e6e9eb74.tar.gz PyX.jl-b24f282bca4af63982937c10835063d3e6e9eb74.zip |
add many, many more example conversions. still not complete
Diffstat (limited to 'examples/splitgraphs/splitatvalue.jl')
-rw-r--r-- | examples/splitgraphs/splitatvalue.jl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/splitgraphs/splitatvalue.jl b/examples/splitgraphs/splitatvalue.jl new file mode 100644 index 0000000..c09d194 --- /dev/null +++ b/examples/splitgraphs/splitatvalue.jl @@ -0,0 +1,23 @@ +# Original Python: +# from pyx import * + +# pf = graph.data.paramfunction + +# g = graph.graphxy(width=8, x=graph.axis.split()) +# g.plot(pf("k", -1, 1, +# "x, y = splitatvalue(k, -0.9, 0.9), k**100", +# points=1000)) +# g.writeEPSfile("splitatvalue") +# g.writePDFfile("splitatvalue") +# g.writeSVGfile("splitatvalue") + +using PyX + +pf = graph_data.paramfunction + +g = graph.graphxy(width=8, x=graph_axis.split()) +plot(g, pf("k", -1, 1, + "x, y = splitatvalue(k, -0.9, 0.9), k**100", + points=1000)) +writeEPSfile(g, "splitatvalue") +writePDFfile(g, "splitatvalue") |