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: 6 months ago
JSON representation
scala plotting (charting, graphing) library
- Host: GitHub
- URL: https://github.com/pityka/nspl
- Owner: pityka
- License: other
- Created: 2016-06-23T05:33:17.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-04-05T04:45:31.000Z (6 months ago)
- Last Synced: 2025-04-05T05:28:35.351Z (6 months ago)
- Topics: canvas2d, charts, data-science, data-visualization, plots, scala, scala-js, scientific-visualization, visualization
- Language: Scala
- Homepage: https://pityka.github.io/nspl/
- Size: 22.2 MB
- Stars: 98
- Watchers: 3
- Forks: 8
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://search.maven.org/search?q=g:io.github.pityka%20nspl)
[](https://index.scala-lang.org/pityka/nspl/nspl-core)
[](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
```