How draw a add_vline using the mouse position in the graph?

I want draw a vertical line based on my click mouse position.
Actually i need that in mult subplot.

I was able to do something similar using

as shown in fig:

but whenever i put my mouse out of the graph the line disapear . I need this line change the position
whenever i click on the graph and it stay there until i click again in another position