docs: def add_boundary_clearance(left, right, top, bottom, frame, clearance=0.1):
      """Increase boundary size
  
      The function increase the space between top and bottom and between left and right parameters.
      The increase performed on the biggest size/frame so max(size boundary, size frame)
  
      :param float left: lower x-axis value
      :param float right: upper x-axis value
      :param float top: lower y-axis value
      :param float bottom: upper y-axis value
      :param dict frame: Dictionary with size and rel_pos tuples
      :param float clearance: Percentage 0.01 = 1% of clearance
      :return:
      """
  
      # print("old boundary", left, right, top, bottom)
      width = right - left
      width = frame['size'][0] if width < frame['size'][0] else width
      left -= 0.5 * clearance * width
      left = 0 if left < 0 else left
      right += 0.5 * clearance * width
  
      height = bottom - top
      height = frame['size'][1] if height < frame['size'][1] else height
      top -= 0.5 * clearance * height
      top = 0 if top < 0 else top
      bottom += 0.5 * clearance * height
      # print("new boundary", left, right, top, bottom)
      return left, right, top, bottom