def _get_width(maxwidth):
    """Return the width of a single bar, when width of the page is given."""
    width = maxwidth / 3
    if maxwidth <= 60:
        width = maxwidth
    elif 60 < maxwidth <= 120:
        width = maxwidth / 2
    return width