Skip to content

kuva v0.1.0 - Initial Release

Choose a tag to compare

@Psy-Fer Psy-Fer released this 28 Feb 09:24
· 635 commits to main since this release

kuva v0.1.0

A scientific plotting library for Rust that renders to SVG, PNG, and PDF. Targets bioinformatics use cases with 25 specialised plot types and a kuva CLI binary for shell-based rendering.

Plot types (25)

Standard:

  • ScatterPlot
  • LinePlot
  • BarPlot
  • Histogram
  • Histogram2D
  • BoxPlot,
  • ViolinPlot
  • PiePlot
  • SeriesPlot
  • BandPlot
  • StripPlot
  • WaterfallPlot
  • StackedAreaPlot
  • CandlestickPlot
  • ContourPlot
  • Heatmap

Bioinformatics:

  • VolcanoPlot
  • ManhattanPlot (hg19/hg38/T2T/custom)
  • BrickPlot (DNA/RNA/STRIGAR/custom)
  • DotPlot
  • UpSetPlot
  • ChordPlot
  • SankeyPlot
  • PhyloTree
  • SyntenyPlot

Backends

  • SVG: always available, no system dependencies
  • PNG: pure-Rust rasterisation via resvg (--features png)
  • PDF: vector output via svg2pdf (--features pdf)
  • Terminal: Unicode braille + ANSI 24-bit colour, no display required (kuva --terminal)

Layout & rendering

  • Figure for multi-plot grid layouts with merged cells, shared axes, and panel labels
  • Log-scale axes, secondary y axis, date/time axes, custom tick formatting
  • Text annotations, reference lines, shaded regions
  • Themes: Default, Dark, Publication
  • Colorblind-safe palettes: wong, okabe_ito, tol_bright, tol_muted, tol_light, ibm

CLI (kuva)

22 subcommands covering all plot types. Reads TSV/CSV from a file or stdin. --color-by for grouped series, --theme, --palette, --log-x/y, --terminal for in-terminal output. A kuva man subcommand generates a
man(1) page.

Known limitations

  • kuva brick CLI subcommand is not yet implemented (pending bladerunner integration)
  • Terminal rendering is not supported for upset
  • No Python or other language bindings yet

Full Changelog: https://github.com/Psy-Fer/kuva/commits/v0.1.0