This commit is contained in:
Tom Gillam 2022-01-24 22:39:44 +00:00
parent 76cd70c881
commit 17ff6692c8

View File

@ -1269,15 +1269,13 @@ const _examples = PlotExample[
"""
`vspan` and `hspan` can be used to shade horizontal and vertical ranges.
""",
[
:(
begin
hspan([1, 2, 3, 4]; label="hspan", legend=:topleft)
vspan!([2, 3]; alpha=0.5, label="vspan")
plot!([0, 2, 3, 5], [-1, 3, 2, 6]; c=:black, lw=2, label="line")
end
)
]
[:(
begin
hspan([1, 2, 3, 4]; label = "hspan", legend = :topleft)
vspan!([2, 3]; alpha = 0.5, label = "vspan")
plot!([0, 2, 3, 5], [-1, 3, 2, 6]; c = :black, lw = 2, label = "line")
end
)],
),
]