def layout_position_to_feet(x: float, y: float, maxx: float, maxy: float,
    width: float=12, height: float=8) ->(float, float):
    """Correct given position based on maximal position in whole graph
    and expected final size"""
    apply = lambda v, m, s: round(s * v / m, 2)
    return apply(x, maxx, width), apply(y, maxy, height)
