add process_any_label

This commit is contained in:
Simon Christ 2020-03-18 17:45:46 +01:00
parent f43a8a7866
commit 3453eccfae

View File

@ -640,6 +640,9 @@ function process_annotation(sp::Subplot, positions::Union{AVec{Symbol},Symbol},
anns anns
end 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 # Give each annotation coordinates based on specified position
function locate_annotation(sp::Subplot, pos::Symbol, lab::PlotText) function locate_annotation(sp::Subplot, pos::Symbol, lab::PlotText)
position_multiplier = Dict{Symbol, Tuple{Float64,Float64}}( position_multiplier = Dict{Symbol, Tuple{Float64,Float64}}(