{"by":"afc","descendants":4,"id":47492871,"kids":[47540026,47540023,47540743,47542136],"score":47,"text":"Just wanted to share with HN a simple&#x2F;minimal open source Python library that generates SVG files visualizing two dimensional data and distributions, in case others find it useful or interesting.<p>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&#x2F;light mode browser settings. The graphs are specified as JSON files (the repository includes a few examples).<p>It supports scatterplots, line plots, histograms, and box plots, and I collected examples here: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;alefore&#x2F;mini_svg&#x2F;blob&#x2F;main&#x2F;examples&#x2F;README.md\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;alefore&#x2F;mini_svg&#x2F;blob&#x2F;main&#x2F;examples&#x2F;READM...</a><p>I did this mostly for the graphs in an article in my blog (<a href=\"https:&#x2F;&#x2F;alejo.ch&#x2F;3jj\" rel=\"nofollow\">https:&#x2F;&#x2F;alejo.ch&#x2F;3jj</a>).<p>Would love to hear opinions. :-)","time":1774288491,"title":"Show HN: Minimalist library to generate SVG views of scientific data","type":"story","url":"https://github.com/alefore/mini_svg/"}