def _calc_bar_width(width):
    """
    Calculate width (in points) of bar plot from figure width (in inches).
    """
    if width <= 7:
        bar_width = width * 3.35
    elif width <= 9:
        bar_width = width * 2.6
    elif width <= 10:
        bar_width = width * 2.1
    else:
        bar_width = width * 1.2
    return bar_width
