def make_circle(self, mask_id, colored='r', off_center=(0, 0)): self.colored = colored self.off_center = off_center """Create circle gui object""" self.circle = Circle((self.image.shape[0] / 2 + self.off_center[0], self.image.shape[1] / 2 + self.off_center[1]), self.image.shape[0] / 6, color=self.colored, fill=True, alpha=0.3, linewidth=3) circle_artist = self.axis.add_artist(self.circle) circle_artist.set_gid(mask_id) self.axis.figure.canvas.draw() return Circle.get_gid(self.circle), (self.circle.center, self.circle.radius),