Makie.jl
Makie.jl copied to clipboard
Add `strokecolor` and `strokewidth` attributes to `lines`
I'd like to plot a line with an outline to it, similar to something like this:
# wide lines for better visibility
julia> lines(1:2, linewidth=10)
julia> lines!(1:2, linewidth=5)
Wrapping this in a recipe with the additional kwargs for convenience and private use is simple enough.
But I think it might be nice to extend the interface of the lines
primitive and have two additional default attributes: strokewidth
and strokecolor
. Similar to how it's possible with scatter
as well.
What do you think, would this be a reasonable thing to add to the lines
primitive?
I think it is. Stroke (and also glow) should be something that we can implement more efficiently in shaders in GLMakie.
Cool, nice to hear that. I don't have any experience with GLMakie or shaders in general so it's sadly nothing I can contribute to then. If there's anything I could do to help out with this (e.g. testing), please get in touch. :)
I think it is. Stroke (and also glow) should be something that we can implement more efficiently in shaders in GLMakie.
I was looking for a glow effect for plotted lines and came across this example. It looks amazing but the code is cumbersome. Similar to scatter
, attributes for glowcolor
and glowwidth
in lines
would be nice!