Is it possible to use other Symbols for the arrowheads in Makie? According to the docs, the arrowhead
attribute is set by default to automatic
, which is in 2D the symbol "▲"
. To use something like arrowhead="△"
could be very useful but throws an error when trying to display the figure.
MWE
This works fine:
using CairoMakie
positions = Point2f.(rand(5), rand(5))
directions = Vec2f.(rand(5), rand(5))
arrows(positions, directions, arrowsize=15)
But this throws an error:
using CairoMakie
positions = Point2f.(rand(5), rand(5))
directions = Vec2f.(rand(5), rand(5))
arrows(positions, directions, arrowsize=15, arrowhead="△")
ERROR: MethodError: no method matching draw_marker(::Cairo.CairoContext, ::String, ::Vec{2, Float32}, ::Vec{2, Float32}, ::ColorTypes.RGBA{Float32}, ::Float32, ::Vec{2, Float32}, ::Quaternionf)
Closest candidates are:
draw_marker(::Any, ::Circle, ::Any, ::Any, ::Any, ::Any, ::Any, ::Any) at ~/.julia/packages/CairoMakie/F9l4g/src/primitives.jl:278
draw_marker(::Any, ::GeometryBasics.HyperRectangle, ::Any, ::Any, ::Any, ::Any, ::Any, ::Any) at ~/.julia/packages/CairoMakie/F9l4g/src/primitives.jl:292
draw_marker(::Any, ::Char, ::Any, ::Any, ::Any, ::Any, ::Any, ::Any, ::Any) at ~/.julia/packages/CairoMakie/F9l4g/src/primitives.jl:228