Vindaar / ggplotnim

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

More colorscale fixes & add customization for tick label margins #145

Closed Vindaar closed 2 years ago

Vindaar commented 2 years ago

Mainly adds the option to customize the margin used between a tick and its tick label, which is especially useful when using the TikZ backend, as placement can be a bit tricky in the general case.

Full changelog:

* v0.5.2
- allows to customize the margin between tick labels and their ticks
  via the =tickMargin= argument to =x/ylab=
- further fixes for missing color scales when using
  =scale_fill/color_continuous=
- fixes an issue with reference semantics messing up plots in certain
  cases when user given formulas modified the input DF in a certain
  way between different geoms
- add =backend= argument to =ggsave= to allow choice of backend,
  e.g. to use pixie backend
- replace usages of =seqsToDf= by =toDf=
- let =backgroundColor=, =canvasColor=, =gridLineColor= take a
  =PossibleColor= to support string based colors
- add =onlyAxes= argument to =gridLines= & =Theme= object to allow to
  only draw axes instead of the full grid (needs ginger =v0.3.13=)