What’s the latest on being able to inspect data interactively in Makie? I mean something similar to what PlotlyJS has by default, where you can for example point the cursor at a point in a scatter plot and it will give you a tooltip showing the coordinates of that point:
My understanding is that the missing puzzle piece is 3D (and 2D for API consistency) object picking. Because then you could tie observables to show/hide the billboard with the related data of your choice. I don’t know how much of an implementation effort this is.
It gets harder for things that don’t have a one to one correspondence of picking index to plot data. Try it with a barplot, for example. The other harder thing might be to get it to work without having to point exactly at specific pixels. It is very annoying to use if you have to perfectly have to point at 0.5 px wide lines
So the range thing is for that purpose? I’ve never seen it in use. And yes, the fundamental thing is there (though it would be nice to have picking in WGLMakie so all the widgets etc work there as well) but in my experience the gap to having something that feels nice to use can still be pretty wide. Just to manage expectations
Adapting this a little bit, I’m trying to use hlines! and vlines! to draw lines from the point being inspected to the y and x axes. The xmax and ymax arguments are in axis space though, whereas I’d like to specify this in data space. Is that possible? Or should I just be simply drawing ordinary lines from the x- and y-axis? Either way is there a function for transforming between data and axis space? I tried searching the docs but couldn’t come up with it.
If I may revive this interesting topic. Since Makie has evolved over the last years, is there an easy way to activate data picking/inspection in newer versions?
Having this as default behaviour is, to my opinion, a real strength of PlotlyJS. It would be great to have an easy way to activate this in Makie.
What do you mean exactly by 2D map? In general though if the default doesn’t meet your needs then have a look at the Custom Text and Extending DataInspector sections of that page.
101 and 49 are indices and the value of the field. It is already extremely useful but I would have liked to have the same information (x,y,z) as with PlotlyJS.