code: def update_coordinates(self, new_coordinates):
          
          for k, v in new_coordinates.items():
              if k in self.coordinates:
                  self.coordinates[k] = v
  
          for svertex in self.spawn_list:
              verts = tuple([self.coordinates.get(ch, None) for ch in svertex.channels])
  
              if len(svertex.channels) == 1:  # This means a histogram
                  svertex.update_position(verts[0], None)
              else:
                  svertex.update_position(verts[0], verts[1])
          self.callback(Event(Event.BASE_GATE_CHANGED))
docs: new_coordinates : dict