From 3453eccfae13b5cb74f143f90b485ce8d1688ea1 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Wed, 18 Mar 2020 17:45:46 +0100 Subject: [PATCH] add process_any_label --- src/components.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components.jl b/src/components.jl index 89bca909..71894343 100644 --- a/src/components.jl +++ b/src/components.jl @@ -640,6 +640,9 @@ function process_annotation(sp::Subplot, positions::Union{AVec{Symbol},Symbol}, anns end +function process_any_label(lab, font=Font()) + lab isa Tuple ? text(lab...) : text( lab, font ) +end # Give each annotation coordinates based on specified position function locate_annotation(sp::Subplot, pos::Symbol, lab::PlotText) position_multiplier = Dict{Symbol, Tuple{Float64,Float64}}(