Scatterlines and lines
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)", markercolor = :black,
markersize = 10)
scatter!(x, -cos.(x); color = :red, label = "-cos(x)", strokewidth = 1,
strokecolor = :red, markersize = 5, marker = '■')
axislegend(; position = :lt, bgcolor = (:white, 0.85), framecolor = :green);
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.