Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 7 days 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 8 years ago)
- Default Branch: master
- Last Pushed: 2024-08-13T01:13:38.000Z (3 months ago)
- Last Synced: 2024-10-23T04:09:06.780Z (14 days 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: 7
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```