code: def on_resize(self, event):
      # Set canvas viewport and reconfigure visual transforms to match.
      vp = (0, 0, self.physical_size[0], self.physical_size[1])
      self.context.set_viewport(*vp)
      self.markers.transforms.configure(viewport=vp, canvas=self)
  
file_path: vispy/examples/basics/visuals/markers.py
imports: import numpy
  from vispy import app, visuals
  from vispy.visuals.transforms import STTransform
label_desc: Use image node_id 4 for calling the Canvas obj's underlying member method code with example usage: obj.on_resize(event) without return types