Skip to main content
Sign in
Snippets Groups Projects
Select Git revision
2 results Searching

JuliaTikzModule.jl

Leif Andersson's avatar
.
Leif Andersson authored
eb9deac1
History
Name Last commit Last update
src
Project.toml
README.md

JuliaTikzModule.jl

Enables Julia code and Tikz code to coexist in the same file.

JuliaTikz

    JuliaTikz(tikzfile,delete=true)

Extract and run the Julia part of a combined tikz/Julia file.

The boundary between the two is the string

\\endinput Julia <name>

where <name> is the name that will be given to the Julia file (with .jl appended), and also to a variable name in the program, i.e. name = "<name>".

The Julia file will be extracted to a temporary directory, which will be deleted after the run unless the optional argument delete is false.

printcsv

printcsv(data::Array{Any}, csv="")

Print the array data to a file suitable for inclusion in pgfplots. The columns of data should have a string as first element, and Float64 as the remaining elements.

The default name of the file will be <name>.csv, where <name> is the value of the global variable name, typically given by JuliaTikz. Another name may be specified whith the second argument of printcsv.