code: def get_data_pct(self, xpct, ypct):
          
          xy_mn, xy_mx = self.get_limits()
          width = abs(xy_mx[0] - xy_mn[0])
          height = abs(xy_mx[1] - xy_mn[1])
  
          x, y = int(float(xpct) * width), int(float(ypct) * height)
          return (x, y)
docs: Calculate new data size for the given axis ratios.
          See :meth:`get_limits`.
  
          Parameters
          ----------
          xpct, ypct : float
              Ratio for X and Y, respectively, where 1 is 100%.
  
          Returns
          -------
          x, y : int
              Scaled dimensions.