Vindaar / ggplotnim

A port of ggplot2 for Nim
https://vindaar.github.io/ggplotnim
MIT License
175 stars 15 forks source link

Allow import of SDL2 backend and text placement improvements #172

Closed Vindaar closed 9 months ago

Vindaar commented 9 months ago

The SDL2 backend can now be imported (instead of only available via -d:experimentalSDL2) by import ggplotnim/ggplot_sdl2.

This update, thanks to upgrading to ginger v0.5.0 fixes many small and large issues with coordinates dependent on text width/height information. Majorly improves the TikZ backend output.

* v0.5.14
- make SDL2 backend a full submodule that can be imported using
  ~import ggplotnim/ggplot_sdl2~
- ~-d:experimentalSDL2~ is still supported and imports/exports the
  module for you
- allow to also save a plot at the same time as showing it, by handing
  a filename argument to ~ggshow~  
- update ~ginger~ dependency to ~v0.5.0~. This fixes our previously
  still not quite correct placement of text which relied on string
  width/height information. Now it is also correct on the TikZ backend