From 9029e37671d27deb81c0c1c9cbf0994ae87fe6f9 Mon Sep 17 00:00:00 2001 From: wfrgra Date: Tue, 31 Mar 2020 20:05:21 +1100 Subject: [PATCH] Turn TimeType annotation locations to float fix errors --- src/components.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components.jl b/src/components.jl index c87fa50f..c5d8b706 100644 --- a/src/components.jl +++ b/src/components.jl @@ -594,7 +594,9 @@ function process_annotation(sp::Subplot, xs, ys, labs, font = font()) xlength = length(methods(length, (typeof(xs),))) == 0 ? 1 : length(xs) ylength = length(methods(length, (typeof(ys),))) == 0 ? 1 : length(ys) for i in 1:max(xlength, ylength, length(labs)) - x, y, lab = _cycle(xs, i), _cycle(ys, i), _cycle(labs, i) + x, y, lab = _cycle(xs, i), _cycle(ys, i), _cycle(labs, i) + x = typeof(x) <: TimeType ? Dates.value(x) : x + y = typeof(y) <: TimeType ? Dates.value(y) : y if lab == :auto alphabet = "abcdefghijklmnopqrstuvwxyz" push!(anns, (x, y, text(string("(", alphabet[sp[:subplot_index]], ")"), font)))