Scatterlines and lines: Legend out
using CairoMakie
x = LinRange(0, 2Ï€, 50)
fig = Figure(resolution = (600, 400))
ax = Axis(fig[1, 1], xlabel = "x")
lines!(x, sin.(x), color = :red, label = "sin(x)")
scatterlines!(x, cos.(x), color = :blue, label = "cos(x)", markersize = 5)
scatter!(x, -cos.(x), color = :red, label = "-cos(x)", strokewidth = 1,
strokecolor = :red, markersize = 5, marker = 'â– ')
Legend(fig[1, 2], ax, merge = true)
fig
Warning
This example was autogenerated using:
using Pkg
Pkg.status(["CairoMakie"])
Status `~/work/BeautifulMakie/BeautifulMakie/docs/Project.toml`
[13f3f980] CairoMakie v0.10.6
This page was generated using Literate.jl.