vagmcs / scalatikz

ScalaTIKZ is an open-source library for PGF/TIKZ vector graphics.

Version Matrix


Maven Central License: LGPL v3

ScalaTIKZ is an open-source library for publication quality PGF/TIKZ vector graphics using the Scala programming language.


ScalaTIKZ comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; See the GNU Lesser General Public License v3 for more details.


  1. 2D PGF plots including lines, scatters, bars, stems and many other options.
  2. Chart plots (pie, clouds, squares).
  3. Configure each plot/chart using a large pool of parameters.
  4. Plot any number of data sequences in one figure.
  5. Support for figure arrays and figures having a secondary y-axis.
  6. Support for Automata plots.
  7. High level API for declaring plot types and subplots.
  8. Save generated graphics as TeX, PDF, JPEG or PNG formats.
  9. Command line interface that can be used in any Unix/Linux shell script.


ScalaTIKZ requires to have a TeXLive distribution installed on your system. Moreover, in case you want to export your plots as image formats, the GhostScript package is also required.

For more details please read the Requirements.

How to get ScalaTIKZ

ScalaTIKZ is published to Maven Central for Scala 2.12 and 2.13.

Add the following dependency to your SBT build file in order to get started:

libraryDependencies ++= "com.github.vagmcs" %% "scalatikz" % "0.5.0"



Contributions are welcome, for details see