from matplotlib.patches import Circle
import matplotlib.pyplot as plt
fig=plt.figure()
circle = Circle((1, 1), radius=1, facecolor="blue", edgecolor="red",label='a circle',linestyle='--',linewidth=2)
plt.gca().add_patch(circle)
#设置x y 坐标轴范围
plt.gca().set_xbound(0,2.5)
plt.gca().set_ybound(0,2.5)
plt.show()
效果