
Sensible datetime scale for Gonum Plot
June 28, 2021
Few months ago I posted a library for sensible int scale for Gonum Plot. There is a similar package I’ve developed to handle timescales.
The integer one, being based on a recursive function, works with any number scale.
Differently, this one will only work well with a timescale between 2 days and a couple of years.
Extending it is not hard since it’s enough to add additional case
statements in the switch
, but I’ve not found use-cases for different timeframes so far.
If you add additional options, please commit them back!