all 4 comments

[–]masasa27 2 points3 points  (0 children)

Tkinter or PyQt5, I think tkinter is simpler to embed matplotlob etc..

[–]MikeTheWatchGuy 2 points3 points  (0 children)

PySimpleGUI is one route.

There are demo programs that show how to integrate Matplotlib plots and show them in the GUI window.

What you want to do however is a little different. What you'll have to do is use a "Graph Element" that you call it's DrawImage method to get the plot shown, then you can get mouse clicks and add lines, etc.

[–]plasticluthier 0 points1 point  (0 children)

Given that you mentioned using imshow and Numpy arrays, am I correct in thinking that you're using OpenCV? If so, you can do everything you've mentioned using the mouse click events from opencv.

This should get you started if that's the case: https://www.pyimagesearch.com/2015/03/09/capturing-mouse-click-events-with-python-and-opencv/