circle = Arc(ccenter, 1, 1, edgecolor=ccol, linewidth=clw) ax.add_patch(circle) plt.savefig(os.path.join(figure_directory, 'fig1.png')) #%% '''Roll circle to the right so that we create a new intersection which is 1/6 of the way along the circles circumference''' segment_angle_deg = 360 / circle_segments segment_angle_rad = 2 * np.pi / circle_segments chord_length = calc_chord_length(.5, segment_angle_rad) newcenter = (.5 * chord_length, .5 * np.cos(segment_angle_rad / 2)) circle.center = newcenter[0], newcenter[1] line = ax.plot([0, chord_length], [0, 0], '.', color='yellow', markersize=15)[0] fig.savefig(os.path.join(figure_directory, 'fig2.png')) #%% # Roll the circle to the right, each time leaving an arc on the x-axis and # removing the arc from the circle. Repeat until circle is all used up. circle.theta1 = 270 - segment_angle_deg / 2 circle.theta2 = circle.theta1 for k in range(0, circle_segments - 1): arc = Arc(newcenter, 1,