Home

GPlot.jl - Documentation

GPlot is a plotting package wrapping the Graphics Layout Engine (⭒). The focus is on reasonable speed, ease of use and high-quality output.

(⭒) and possibly, in some unspecified future, with GnuPlot and Asymptote.

Key features:

What it's not meant for:

Note: the package is still being actively developed, feature requests, feedback or contributions are welcome.

Why GPlot?

I discovered the Graphics Layout Engine (GLE) a while back and liked what it could do though not its syntax and thought a wrapper for GLE in Julia with a matplotlib-like syntax was an interesting project to work on to learn more about Julia and about data visualisation.

The package is not as mature or feature complete as the current main plotting packages such as Plots.jl, Makie.jl, PyPlot.jl, Gadfly.jl, PGFPlots.jl, PGFPlotsX.jl, etc. which you may prefer if you would rather avoid an experimental library.

How it works

GPlot translates plotting commands such as plot(1:5, randn(5)) into

This is then passed to the GLE engine which produces the desired output. If LaTeX is used, the GLE engine also uses pdflatex in the background to produce the output (this incurs an overhead).

The diagram below illustrates the workflow:

                +----------------------+
          +---> | Generated GLE code   +---+
Julia     |     +----------------------+   +---> GLE engine
code   ---+                                |         +
          |     +----------------------+   |         |
          +---> | Auxiliary data files +---+         |
                +----------------------+         (pdflatex)
                                                     |
                                                     |
                                                     v
                                              Output (PDF/PNG/...)

eventually the auxiliary files are removed (unless the user requests to keep them).

License