2d Plotting Library for Scala and Scala.js

Creates scatter, line, contour, raster, barplots and boxplots, histograms, density plots. Composite figure of multiple plots.

Renders to


See the documentation website at .

This library is built for Scala 2.13 and Scala 3.2.

Maven coordinates:

  • For jvm: libraryDependencies += "io.github.pityka" %% "nspl-awt" % "0.0.???"
  • For canvas (Scala.js): libraryDependencies += "io.github.pityka" %% "nspl-canvas-js" % "0.0.???"

Version policy

nspl uses the recommended versioning scheme enforced with

How to build the website

The website is built with hugo and the hugo-book theme.

The theme is a git submodule. It must be initialized.

git submodule update --init 

Create and serve the site with:

sbt docs/mdoc docs/unidoc && cd website && hugo