From 0daed2402020be329314a222c7ad81a391a1fadc Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Mon, 6 Apr 2020 14:12:46 +0200 Subject: [PATCH 1/3] fix link --- src/args.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/args.jl b/src/args.jl index e4f137af..baa2a76c 100644 --- a/src/args.jl +++ b/src/args.jl @@ -1015,7 +1015,7 @@ function preprocessArgs!(plotattributes::AKW) end # handle axes args for k in _axis_args - if haskey(plotattributes, k) + if haskey(plotattributes, k) && k !== :link v = plotattributes[k] for letter in (:x, :y, :z) lk = Symbol(letter, k) From 1b0fb955832f99f142f9c737efd065d4129e31ac Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Mon, 6 Apr 2020 14:26:22 +0200 Subject: [PATCH 2/3] add axes linking test --- src/examples.jl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/examples.jl b/src/examples.jl index ff55b586..37c9e19b 100644 --- a/src/examples.jl +++ b/src/examples.jl @@ -934,6 +934,18 @@ const _examples = PlotExample[ end, ], ), + PlotExample( + "Linked axes", + "", + [ + quote + begin + x = -5:0.1:5 + plot(plot(x, x->x^2), plot(x, x->sin(x)), layout = 2, link = :y) + end + end, + ], + ), ] # Some constants for PlotDocs and PlotReferenceImages From f118d0cd351ec7f6a4b6be1e4c2c1b1a59c511a2 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Mon, 6 Apr 2020 14:27:03 +0200 Subject: [PATCH 3/3] bump version --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index ab1054eb..0b4ebefb 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Plots" uuid = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" author = ["Tom Breloff (@tbreloff)"] -version = "1.0.1" +version = "1.0.2" [deps] Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"