def drawCenter(self):
"""Draws a red marker at selected center on canvas."""
if len(self.centerPt)>0:
self.clearCenter()
pt=ptc.Circle(self.center,radius=3,fill=True,color='r')
self.centerPt.append(self.ax.add_patch(pt))
self.fig.canvas.draw()
return self.centerPt
评论列表
文章目录