code: def _hide_box(self, annotation):
          
          annotation.set_visible(False)
  
          if self.display == 'multiple':
              annotation.axes.figure.texts.remove(annotation)
              # Remove the annotation from self.annotations.
              lookup = dict((self.annotations[k], k) for k in self.annotations)
              del self.annotations[lookup[annotation]]
  
          annotation.figure.canvas.draw()
docs: Remove a specific annotation box.