From a1fad974dc49871bc87f8de99cec9f7731099d1a Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sun, 21 Feb 2016 14:01:29 -0800 Subject: meta-files --- .gitignore | 26 ++++++++++++++++++++++++++ README.md | 33 +++++++++++++++++++++++++++++++++ REQUIRE | 3 +++ TODO | 8 ++++++++ 4 files changed, 70 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 REQUIRE create mode 100644 TODO diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5b701a5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,26 @@ +*.pdf +*.eps +*.log +*.aux +*.dvi + +*.o +*.a +*.pyc +*~ +*.swp +.* +*.tmp +*.old +*.profile +*.bkp +*.bak +[Tt]humbs.db +*.DS_Store +build/ +_build/ +src/build/ +*.log + +# Don't ignore this file itself +!.gitignore diff --git a/README.md b/README.md new file mode 100644 index 0000000..d013970 --- /dev/null +++ b/README.md @@ -0,0 +1,33 @@ + +This is a Julia wrapper of the PyX plotting and TeX graphics library from +Python. + +It is a work in progress, broken, and will set your computer on fire. + +## Example + +``` +using PyX + +g = graph.graphxy(width=8) +plot(graph_data_function("y(x)=sin(x)/x", min=-15, max=15)) +writeEPSfile(g, "function") +writePDFfile(g, "function") +writeSVGfile(g, "function") +``` + +## Install + +There are no installation instructions. + +## Notes and Caveats + +PyX >= 0.13 (2013) is Python3 only. PyX <= 0.12.1 is Python2. + +Instead of Python's `None`, use Julia's `nothing`. + +`graph_data.function` won't work in Julia because `function` is a reserved +word. Use `graph_data_function` instead. + +Also check the TODO file. + diff --git a/REQUIRE b/REQUIRE new file mode 100644 index 0000000..630b8e7 --- /dev/null +++ b/REQUIRE @@ -0,0 +1,3 @@ +julia 0.4 +PyCall 1.1 +LaTeXStrings diff --git a/TODO b/TODO new file mode 100644 index 0000000..7f4794c --- /dev/null +++ b/TODO @@ -0,0 +1,8 @@ +- lots of temporary files (.log, .dvi, etc) get left around. need to somehow + tell python to exit cleanly at the end, and maybe also use a different + temporary directory. +- an array of tuples doesn't seem to get converted correctly? eg, + zip(1:10, 1:10) +- create native "PyxGraph", "PyxCanvas" types +- integration of SVG renders into, eg, Jupyter. Python3 only. +- python2 vs. python3 versions of PyX -- cgit v1.2.3