code: def on_leave_figure(event):
      print("leave_figure", event.canvas.figure)
      event.canvas.figure.patch.set_facecolor("grey")
      event.canvas.draw()
  
imports: import matplotlib.pyplot
label_desc: Use image node_id 4 for calling a global function with example usage: on_leave_figure(event) without return types