Vindaar / ggplotnim

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

log10 for raster plots and `x/ylim` minor convenience improvement #173

Closed Vindaar closed 9 months ago

Vindaar commented 9 months ago

We also change the default style for plots with a legend. Instead of having a different margin at the top compared to a plot without legend, it is now the same. I don't know why I did that, but it's annoying when having two plots side by side one with and one without a legend.

* v0.6.1
- do not change the top margin of a plot based on a legend being added
  anymore. That's kind of jarring.
- add ~scale_fill_log10~ for log10 raster scales
- ~x/ylim~ now ignore input range values if the values are the
  same. This is to support code that takes the ranges from a variable
  to support the case of a default e.g. ~(0, 0)~ argument