From 6b8131fcca503aee717f19363fb133a76dc25aea Mon Sep 17 00:00:00 2001 From: Diaga Date: Thu, 30 Jul 2020 05:13:13 +0500 Subject: [PATCH] Add test to confirm series args update after initial plot creation --- src/examples.jl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/examples.jl b/src/examples.jl index 814083c2..b693f772 100644 --- a/src/examples.jl +++ b/src/examples.jl @@ -995,6 +995,18 @@ const _examples = PlotExample[ scatter!(Point2.(eachcol(rand(d,1000))), alpha=0.25) end] ), + PlotExample( + "Series args update after initial plot creation", + "", + [ + quote + begin + plot([sin, cos], -2π, 2π, label = ["sin(θ)" "cos(θ)"], legend = :outerbottom) + plot!(label=["cos(θ)" "sin(θ)"], arrow=(:closed, 2.0)) + end + end, + ], + ), ] # Some constants for PlotDocs and PlotReferenceImages