class_docstr: A cross-hair cursor using blitting for faster redraw.
class_docstr_tok: ["A","cross-hair","cursor","using","blitting","for","faster","redraw","."]
code: def create_new_background(self):
      if self._creating_background:
          # discard calls triggered from within this function
          return
      self._creating_background = True
      self.set_cross_hair_visible(False)
      self.ax.figure.canvas.draw()
      self.background = self.ax.figure.canvas.copy_from_bbox(
          self.ax.bbox
      )
      self.set_cross_hair_visible(True)
      self._creating_background = False
  
file_path: matplotlib/galleries/examples/event_handling/cursor_demo.py
imports: import matplotlib.pyplot
  import numpy
  from matplotlib.backend_bases import MouseEvent
label_desc: Use image node_id 4 for calling the BlittedCursor obj's underlying member method code with example usage: obj.create_new_background() without return types