Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    I understand that your points are simply P1(s,t), P2(u,v), P3(w,x), P4(y,z). You have many examples of annotating any point (px, py) in your code snippet at several instances. For example: plt.annotate("Intersecting Point", (pointx,pointy),color='Blue') Have you tried using this same method for the four points by replacing pointx,pointy with corresponding coordinates (for ex: u,v)? Commented Dec 14, 2020 at 20:02
  • @skuzzy If I do that, the points will be marked after the intersecting lines are drawn and not when the user selects the point. I want the points to be marked as soon as the user selects them. Commented Dec 15, 2020 at 8:07
  • Your points should get drawn as you call the plot method. Check my answer for a reference example. Commented Dec 15, 2020 at 9:08