def _calc_auto_plot_height(group_count):
    'Dynamic calculation of plot height.'
    ht_per_row = 40
    if (group_count > 15):
        ht_per_row = 25
    return max((ht_per_row * group_count), 300)
Dynamic calculation of plot height.
def _calc_auto_plot_height(group_count):
    
    ht_per_row = 40
    if (group_count > 15):
        ht_per_row = 25
    return max((ht_per_row * group_count), 300)