Makie - What are the available line styles?

Looking at the documentation I can not found what are the available line styles for plotting lines. I only found :dashed in one example.

Having a list somewhere or, if it already exists and I missed it, a link to it in the documentation of lines would be helpful.

1 Like

It’s dash, dot, dashdot and dashdotdot I think. We should add examples on the lines page. And you can pass an array of relative segment and gap lengths as well.

1 Like

You can have a look at the convert functions:

Hi All,
I guess the Legend(…) is also supposed to work with this custom (vector) linestyles, the same way it does with :dash, :dot. It is not working in my case. Could you confirm that? If so, I will try to debug and build a minimum working example.
Thanks

Is this maybe the same problem as in this issue? Legend dash and dashdot · Issue #1908 · JuliaPlots/Makie.jl · GitHub

Then you need to increase the Legend patchsize