Hi,
I’m using Makie and need to display a lot of text in a plot and have been using a number of observable vectors to improve performance. However, I ran into syncronization problems when the length of the vectors change. The documentation refers to a solution …
Often, you can avoid length change problems by using arrays of containers like Point2f
or Vec3f
instead of synchronizing two or three observables of single element vectors manually.
So, I have created a vector containing a tuple with all the data required.
Vector{Tuple{Tuple{Float64, Float64}, String, Symbol, Float64, Tuple{Symbol, Symbol}}}
so I end up with a vector called oTextInformation with hundreds of tuples. Now I would like to pull out the appropriate data for each parameter required for the text! function.
I’m having a hard time working out what the text!() call would look like. I tried lots of things including
text!(spr.axis, lift(d → d[1], oTextInformation), lift(d → d[2], oTextInformation),
color = lift(d → d[3], oTextInformation), textsize= lift(d → d[4], oTextInformation),
align = lift(d → d[5], oTextInformation))
but the index 1-5 is pointing to the vector element rather than the position in the tuple.
Can anyone point me in the right direction here, or perhaps a link to an example.
Thanks
Steve