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" 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) 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