# Colour map credits

## Bundled font

DejaVu Sans regular and bold are included unmodified from Matplotlib 3.10.8:
https://github.com/matplotlib/matplotlib/blob/v3.10.8/lib/matplotlib/mpl-data/fonts/ttf/DejaVuSans.ttf
https://github.com/matplotlib/matplotlib/blob/v3.10.8/lib/matplotlib/mpl-data/fonts/ttf/DejaVuSans-Bold.ttf

Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved.
DejaVu changes are in the public domain. The full font notices and licence,
including the Arev glyph terms, are retained in `fonts/DejaVu-LICENSE.txt`.
The identical font bytes are also encoded as base64 in `fonts/dejavu-sans.js`
for offline browser use and embedding in exported SVG; the font is not modified.


## Matplotlib colour maps

The browser uses numeric reference data from Matplotlib 3.10.8:

- [Listed colour tables](https://github.com/matplotlib/matplotlib/blob/v3.10.8/lib/matplotlib/_cm_listed.py): all 256 RGB entries for viridis, plasma, inferno, magma, and cividis.
- [Segmented colour definitions](https://github.com/matplotlib/matplotlib/blob/v3.10.8/lib/matplotlib/_cm.py): the 33 coolwarm anchors and RGB ramps for the other available maps.

Copyright (c) 2012- Matplotlib Development Team; All Rights Reserved.
The full Matplotlib licence agreement is retained in [Matplotlib-LICENSE.txt](Matplotlib-LICENSE.txt).

Changes to the reference material: numeric arrays were extracted by static text
parsing and converted to JavaScript array literals in `matplotlib-colormap-data.js`,
preserving their numeric precision. Python source code is not included or executed.
The browser's own lookup code uses the default 256-entry table convention; RGB
channels are converted to CSS's 0–255 scale when producing a colour.

Coolwarm was developed by Kenneth Moreland for
[Diverging Color Maps for Scientific Visualization](https://www.kennethmoreland.com/color-maps/).
Viridis, plasma, inferno, and magma were developed by Nathaniel J. Smith,
Stefan van der Walt, and Eric Firing, and their original colour-map data are
[released under CC0](https://github.com/BIDS/colormap/blob/master/colormaps.py).

The previews and strip drawing share the same local definitions. Data-based
Python exports refer to Matplotlib's colormap names; custom and random colour
exports capture the chosen colours.

The spiral-strip browser application itself is covered by the repository's
AGPL licence in [LICENSE](LICENSE).
