import matplotlib.pyplot as plt
from matplotlib.patches import Wedge
r=0.5
s=0.02
c=(0.5,0.5)
plt.figure(figsize=(20,20))
fig = plt.gcf()
circle=plt.Circle(c,r,color='k')
fig.gca().add_artist(circle)
y_up=0.5-2.0*s
y_down=0.5+2.0*s
for i in xrange(1,5):
circle1=Wedge(c,r,90,270,color='k')
circle2=Wedge(c,r-s,270,90,color='w')
if i % 2!=0:
y3=y_up
y4=y_down
else:
y4=y_up
y3=y_down
circle3=Wedge((0.5,y3),r-2.0*s,90,270,color='w')
circle4=Wedge((0.5,y4),r-3.0*s,270,90,color='k')
r=r-5.0*s
fig.gca().add_artist(circle1)
fig.gca().add_artist(circle2)
fig.gca().add_artist(circle3)
fig.gca().add_artist(circle4)
plt.show()