I have two plotly figures that I plot one next to the other in the following manner:
ef visualize_mesh_pair(
source_mesh,
target_mesh,
corr_map,
):
color_map_vis = create_colormap(source_mesh.vert)
fig = make_subplots(
rows=1,
cols=2,
shared_yaxes=True,
shared_xaxes=True,
specs=[[{
"type": "mesh3d"
}, {
"type": "mesh3d"
}]],
)
fig.add_trace(self.plotly_mesh(source_mesh, color_map_vis),
row=1,
col=1)
fig.add_trace(self.plotly_mesh(target_mesh, color_map_vis[corr_map]),
row=1,
col=2)
With the following example image
And I also have a mapping between them, e.g shape0[i]->shape1[j] (using a simple numpy array where npa[i]=j
Is there a way to add an arrow on hover? or even a simple marker, that when I hover on shape 1, the corresponding point in shape 2 changes color/ has a pointer? (option A in red arrow, option B in black circle)