class_docstr: AnnotationPlot handles the display of all annotation elements.
class_docstr_tok: ["AnnotationPlot","handles","the","display","of","all","annotation","elements","."]
code: def update_handles(self, key, axis, annotation, ranges, style):
      # Clear all existing annotations
      for element in self.handles["annotations"]:
          element.remove()
  
      with abbreviated_exception():
          self.handles["annotations"] = self.draw_annotation(
              axis, annotation.data, style
          )
  
imports: import matplotlib
  import numpy
  import pandas
  import param
  from matplotlib import patches
  from matplotlib.lines import Line2D
  from ...core.options import abbreviated_exception
  from ...core.util import match_spec
  from ...element import HLines, HSpans, VLines, VSpans
  from .element import ColorbarPlot, ElementPlot
  from .plot import mpl_rc_context
label_desc: Use image node_id 3 for calling the AnnotationPlot obj's underlying member method code with example usage: obj.update_handles(key, axis, annotation, ranges, style) without return types