I have a simple scatter plot on top of which I hand-annotated some shapes using drawopenpath. Now I want to collect the coordinates of the shape that I have drawn. I realize it can be done with “callbacks”, but I am not sure how. Can someone please help?
fig1 = px.scatter(df, x = "xcoord", y = "ycoord")
fig2 = px.scatter(boundary_df, x="x", y="y")
fig3 = go.Figure(data=fig1.data+ fig2.data,
title_text='Drag to add annotations - use modebar to change drawing tool'
Thanks for replying, but I don’t see how? From the page
The EditControl makes it possible to draw and edit vectors and markers. It is powered by Leaflet.draw, but with a custom Dash integration that exposes the visible geometries in geojson format via a geojson property and the edit actions via an action property.
So it collects the points inside the boundary not the coordinates of the shape that I have drawn. Am I missing something?