I’ve come across this problem many times, but I can’t find any mentions of it anywhere on here or the Plots repo. Consider:
julia> using Plots julia> histogram(rand(Date(2000, 1, 1):Day(1):Date(2001, 1, 1), 100))
Here, Plots uses
Dates.value(date) on the x-axis, which means one has to be pretty good at mental arithmetic to interpret what the graph actually shows. I’ve tried using
xformatter = x -> string(Date(0) + Day(x)) but to no avail (yes, I’ve also forgotten which function gives a
Date from the
Dates.value of a date, something I asked Jacob a long time ago on Slack…)
Are there issues related to this that I’ve missed? And does anybody have an idea for a workaround?