We want to save the points that we have clicked on a list with the coordinates or in a database.
2 Answers
Matplotlib does have buttons, see the example code here, however you might want to look at using something like PyQT5 to create a UI for this purpose. You can setup a GUI quickly with QTDesigner, then use promote a widget to a matplotlib graph (see this tutorial) and link matplotlib's "on click" event handler to whatever purpose you would like to achieve.
3 Comments
This is definitely possible with matplotlib, however without a minimum working example it's difficult to give you a full answer. For this kind of project, I've worked with Jupyter notebooks as they allow you to define pressable buttons through widgets (for example here).
I'd start by having a look at matplotlib event handling, and for example this answer for how to record an onclick event.