code: def scale_to_vol(self, vol):
          
  
          f = np.exp((np.log(vol) - np.log(self.vol)) / self.n)  # linear factor
          self.expand *= f
          self.cov *= f**2
          self.am *= f**-2
          self.axlens *= f
          self.axes *= f
          self.vol = vol
docs: Scale ellipoid to a target volume.