code: def scale(self, by):
          
          self.points *= np.asarray([by])
          self._adjust_ports()
docs: Scale the points in the Pattern.
  
          Parameters
          ----------
          by : float or np.ndarray, shape=(3,)
              The factor to scale by. If a scalar, scale all directions isotropically.
              If np.ndarray, scale each direction independently.