Merge pull request #2540 from daschw/link

Fix link
This commit is contained in:
Daniel Schwabeneder 2020-04-06 14:44:31 +02:00 committed by GitHub
commit 407456eac5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 2 deletions

View File

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

View File

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

View File

@ -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