From 87b220e7473387626c44b044db55ecb410a0047d Mon Sep 17 00:00:00 2001 From: harryscholes Date: Mon, 6 Apr 2020 15:15:55 +0100 Subject: [PATCH] Fix #2487 --- src/shorthands.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shorthands.jl b/src/shorthands.jl index 81d290c7..230806a4 100644 --- a/src/shorthands.jl +++ b/src/shorthands.jl @@ -438,7 +438,7 @@ julia> plot(1:10) julia> annotate!([(7,3,"(7,3)"),(3,7,text("hey", 14, :left, :top, :green))]) ``` """ -annotate!(anns...; kw...) = plot!(; annotation = anns, kw...) +annotate!(anns...; kw...) = plot!(; annotation = collect(anns), kw...) annotate!(anns::AVec{T}; kw...) where {T<:Tuple} = plot!(; annotation = anns, kw...) "Flip the current plots' x axis"