Meshes.jl icon indicating copy to clipboard operation
Meshes.jl copied to clipboard

Label not supported with viz

Open BloodWorkXGaming opened this issue 11 months ago • 3 comments

Hello :)

Trying to add a label to geometryobject (polyarea in this cade) isn't supported with the viz function. It results in the following error:

ERROR: `legendelements` returned an empty list for content element of type MakieCore.Combined{Meshes.viz, Tuple{GeometrySet{2, Float64, PolyArea{2, Float64, Ring{2, Float64, CircularArrays.CircularVector{Point2, Vector{Point2}}}}}}}. That could mean that neither this object nor any possible child objects had a method for `legendelements` defined that returned a non-empty result.

I know it isn't supported from the documentation, but it's a seems like a useful feature I'd like to ask for :) Thanks in advance!

BloodWorkXGaming avatar Aug 07 '23 10:08 BloodWorkXGaming

Thanks for the feature request @BloodWorkXGaming. If you can find the underlying Makie call in our recipes where this options should be inserted, that will help us speed up the impementation. Feel free to submit a PR as well.

juliohm avatar Aug 07 '23 10:08 juliohm

Alright thanks :) will check it out in the next few days, quite low on time currently.

BloodWorkXGaming avatar Aug 07 '23 13:08 BloodWorkXGaming

The goal here is to introduce a global label option to assign labels to elements of the domain.

juliohm avatar Nov 29 '23 12:11 juliohm