Skip to content
Snippets Groups Projects
Select Git revision
  • 67e3862ad49dba39f688226dea901de0c60a90f7
  • main default protected
2 results

ModJuliaTikz.jl

  • Clone with SSH
  • Clone with HTTPS
  • Name Last commit Last update
    src
    test
    .gitignore
    LICENSE
    Project.toml
    README.md

    ModJuliaTikz.jl

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

    For installation, se the end of this README,

    JuliaTikz

    JuliaTikz(tikzfile,write_file=false)

    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 a variable name in the program, and also to the Julia file (with .jl appended), if the optional argument write_file is true.

    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.

    installation

    To install, start by pushing the clone button in this repo and copying the URL. The HTTPS version should always work, the SSH version should work if you have a suitable ssh key.

    Enter the Pkg REPL by pressing ] from the Julia REPL. You should get a prompt like (@v1.9) pkg> . To add this package, type

    (@v1.9) pkg> add <URL>

    where <URL> is the value you got from the clone commands above. Leave the Pkg by pressing backspace or ^C. You can now type using ModJuliaTiz if you like.