circle_polygon

lenstest.lenstest.circle_polygon(R, X0=0, Y0=0)[source]

Create a polygon for a circle.

If you want to plot the circle then the aspect ratio for the axes should to be set to equal: plt.gca().set_aspect(‘equal’) so that the circle is looks round.

Parameters:
  • R – radius of the circle

  • X0 – x-value of center of circle

  • Y0 – y-value of center of circle

Returns:

x, y – coordinates of polygon