I am trying to determine how I can increase the line thickness of the lines in the legend.
Please consider the following MWE and resulting image. The lines in the legend are too short and it is hard to tell which is dashed and which is solid (I realize in this case the markers can be used to discern them, please ignore that for the sake of the example).
How can I increase the little segments of line in in the legend so it is clearer which line style corresponds to which legend entry?
using CairoMakie, LinearAlgebra
x = LinRange(0, 1, 10)
y1 = sin.(2π * x)
y2 = x .^ 2
begin
fig = Figure()
ax = Axis(fig[1, 1])
scatterlines!(x, y1, label="Line 1")
scatterlines!(x, y2, label="Line 2")
axislegend("My Legend", position=:lb)
fig
end
Correct - I forgot I had a theme applied separately that is not included in the MWE. Although the theme makes no changes to patchsize so still not clear how or why it got so small. Either way, it is fixed!