code: def on_resize(self, event):
      vp = (0, 0, self.physical_size[0], self.physical_size[1])
      self.context.set_viewport(*vp)
      for line in self.lines:
          line.transforms.configure(canvas=self, viewport=vp)
  
      # Need to update clipping boundaries if the window resizes.
      tr = self.lines[1].transforms.get_transform(
          "visual", "framebuffer"
      )
      self.clipper.bounds = tr.map(Rect(100, -20, 200, 40))
  
file_path: vispy/examples/basics/visuals/visual_filters.py
imports: import numpy
  from vispy import app, visuals
  from vispy.visuals.transforms import STTransform
  from vispy.visuals.filters import Clipper, Alpha, ColorFilter
  from vispy.visuals.shaders import Function
  from vispy.geometry import Rect
label_desc: Use image node_id 3 for calling the Canvas obj's underlying member method code with example usage: obj.on_resize(event) without return types