I can’t figure out how to squash this. I’ve never had this problem before when using Observables and Makie. What’s the secret. For a surface plot, when I update the x-vector and change its size, and update the Z vector and change it’s size to match. I use X.val= and Z[]= to do the updates, I get a black triangle that converges at 0,0,0 I think. When I use Vectors for X and Y, it converges to a line. When I use Matrices for X and Y it converges to 0,0,0 I think.
The easiest way to identify the plot type is probably to check robj.vertexarray.program.shader for surface.vert. The you have to change the number of rectangles used to draw the surface
and then trigger a redraw. Programmatically you can do that with screen.requires_update = true, normally you do that my adjusting some data or interacting with the figure.
More fitting to the title, I have been experiencing bugs with observables triggering multiple times after a single click. For some on() blocks, e.g. rectangle dragging and mouse location, I built in a time check to prevent a series of updates. For some other ones like Buttons, I did not have to do that, but since recently they trigger multiple times, e.g. launch a file picker twice.