The Makie series command can be used to plot several lines of a matrix.
I found an documentation example that shows how to set different labels and colors for the different lines.
Could someone hint me to documentation or example on how I specify different linestyles for the different lines? These are important for greyscale prints.
Sorry, just stumbled onto this myself. I’m not sure if Series supports line styles directly, but plotting Lines and cycling their line style with a theme seems to do the trick:
using CairoMakie
with_theme(Lines=(; cycle=:linestyle)) do
fig = Figure()
ax = Axis(fig[1, 1])
for (i, line) ∈ enumerate(eachcol(rand(10, 5)))
lines!(ax, line; label="L$(i)")
end
axislegend()
fig
end