#plot #colorimetry #svg

colorimetry-plot

SVG plots for the colorimetry crate

1 unstable release

0.0.8 Sep 7, 2025

#509 in Visualization

MIT/Apache

2MB
27K SLoC

Colorimetry Plots

Colorimetry Plot Library

This colormimetry library provides functionality for generating SVG-based color plots, with both low-level and higher level API, based on top of the Rust-SVG library. It includes generating basic 2D (x,y) charts composed of several layers, and more complex chromaticity diagrams with the spectral locus, and gamut fills. Here is an example of a XY Chromaticity Diagram for the DisplayP3 color space, using the CIE 2015 observer: XY Chromaticity Diagram Plots are built up in Layers using coordinate transformations between plot space and world coordinates.

Modules

  • chart: Chart composition and rendering.
  • layer: Layered rendering support for compositing multiple plot elements.
  • rendable: Traits and types for objects that can be rendered to SVG.
  • spectrum: Spectrum data visualization and color representation.
  • style_attr: SVG styling attributes and utilities.
  • svgdoc: SVG document creation and manipulation.
  • view: Viewport and plot area management.

Core Features

  • Layered Architecture: Build complex plots by compositing multiple layers
  • Coordinate Transforms: Seamless conversion between plot and world coordinate systems
  • SVG Generation: High-quality vector graphics output
  • Configurable Styling: Flexible styling system for plot elements
  • Precision Control: Configurable floating-point precision for clean output

Dependencies

~35MB
~609K SLoC