Simple py/ts logic to generate SVG visualizations of scientific data (example graphs).
The generated images tend to be significantly leaner than what general (non-SVG specific) plotting software generates. For example, a simple histogram is:
| Tool | Size | bzip2 Size |
|---|---|---|
| gnuplot | 48K | 4.5K |
| matplotlib.pyplot | 49K | 7.9K |
| mini_svg | 4.6K | 1.3K |
Plot types
Usage
There's two main interfaces.
Command-line
As a command-line which receives parameters from a json file.
See .sh files in the examples directory.
Python (in-process)
Call the functions exposed in module mini_svg.
TypeScript (in-browser)
Install:
npm install git+https://github.com/alefore/mini_svg.git
TODO: More information is missing here.
Caveats
Type TypeScript implementation is experimental.