class_docstr: Test docstring.
class_docstr_tok: ["Test","docstring","."]
code: def update(self, event, model):
      if event == "examples_loaded":
          for i in range(len(model.data)):
              self.update_example(model, i)
  
      if event == "example_added":
          self.update_example(model, -1)
  
      if event == "clear":
          self.ax.clear()
          self.ax.set_xticks([])
          self.ax.set_yticks([])
          self.contours = []
          self.c_labels = None
          self.plot_kernels()
  
      if event == "surface":
          self.remove_surface()
          self.plot_support_vectors(model.clf.support_vectors_)
          self.plot_decision_surface(model.surface, model.surface_type)
  
      self.canvas.draw()
  
imports: import matplotlib
  from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
  import sys
  import tkinter
  import numpy
  from matplotlib.contour import ContourSet
  from matplotlib.figure import Figure
  from sklearn import svm
  from sklearn.datasets import dump_svmlight_file
label_desc: Use image node_id 5 for calling the View obj's underlying member method code with example usage: obj.update(event, model) without return types