# Minimalist library to generate SVG views of scientific data

Just wanted to share with HN a simple/minimal open source Python library that generates SVG files visualizing two dimensional data and distributions, in case others find it useful or interesting. I wrote it as a fun project, mostly because I found that the standard libraries in Python generated unn…

- **Page:** https://magpie.gallery/i/minimalist-library-to-generate-svg-views-of-scient-5cw2
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Tags:** python, svg, visualization, charts, open-source

## Source

Web · afc: Minimalist library to generate SVG views of scientific data

- **Original:** https://news.ycombinator.com/item?id=47492871

> Just wanted to share with HN a simple/minimal open source Python library that generates SVG files visualizing two dimensional data and distributions, in case others find it useful or interesting. I wrote it as a fun project, mostly because I found that the standard libraries in Python generated unnecessarily large SVG files. One nice property is that I can configure the visuals through CSS, which allows me to support dark/light mode browser settings. The graphs are specified as JSON files (the repository includes a few examples). It supports scatterplots, line plots, histograms, and box plots, and I collected examples here: https://github.com/alefore/mini_svg/blob/main/examples/READM... I did this mostly for the graphs in an article in my blog (https://alejo.ch/3jj). Would love to hear opinions. :-) https://github.com/alefore/mini_svg/

## GitHub projects

- https://github.com/alefore/mini_svg

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
