Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pityka/nspl

scala plotting (charting, graphing) library
https://github.com/pityka/nspl

canvas2d charts data-science data-visualization plots scala scala-js scientific-visualization visualization

Last synced: 2 days ago
JSON representation

scala plotting (charting, graphing) library

Awesome Lists containing this project

README

        

[![](https://img.shields.io/maven-central/v/io.github.pityka/nspl-core_2.13.svg)](https://search.maven.org/search?q=g:io.github.pityka%20nspl)
[![](https://index.scala-lang.org/pityka/nspl/nspl-core/latest-by-scala-version.svg?platform=jvm)](https://index.scala-lang.org/pityka/nspl/nspl-core)
[![documentation](https://img.shields.io/badge/docs-green)](https://pityka.github.io/nspl/)

# 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
* java Graphics2D
* PDF/SVG/EPS (via [VectorGraphics2D](https://github.com/eseifert/vectorgraphics2d))
* SVG (via [ScalaTags](http://www.lihaoyi.com/scalatags/), both in browser or on jvm)
* Html5 Canvas ([scala-js](http://www.scala-js.org))

## Usage

See the documentation website at [https://pityka.github.io/nspl/](https://pityka.github.io/nspl/) .

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 https://github.com/scalacenter/sbt-version-policy.

## How to build the website
The website is built with [hugo](https://gohugo.io/) and the [hugo-book](https://github.com/alex-shpak/hugo-book) theme.

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

```sh
git submodule update --init
```

Create and serve the site with:

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