Plots with formatted DateTime xticks?

The xticks option receives both the positions and labels of the ticks, so you can do:

julia> ticks = Dates.format.(tm_tick,"yyyy-mm-dd");

julia> plot(tm,sin.(2pi*x/28),xticks=(tm_tick,ticks),xrot=60)

test

8 Likes