Home > database >  Trace arc from two points and center in Python
Trace arc from two points and center in Python

Time:06-16

I am trying to clean this figure that I've produced with python and matplotlib - I would like for each pair of red points on the same cicle be connected by an arc (or partial circle). However, I have only managed to plot the entirety of the circles.

The end goal is to get a clean offset of my convex shape (black outline), in a continuous dashed red line.

Convex Hull and its Offset

I know the coordinates of the center of each circle, and the coordinates of each red dot. Does anyone know how I could go about this? Also, each circle has the same diameter.

CodePudding user response:

Try https://matplotlib.org/stable/api/_as_gen/matplotlib.patches.Arc.html with the same width and height.

  • Related