def _subplot_index(index, row_off, col_off):
    startrow = ((index * 2) // n_cols)
    startcol = ((index * 2) % n_cols)
    return (((((2 * startrow) + row_off) * n_cols) + (startcol + col_off)) + 1)
def _subplot_index(index, row_off, col_off):
    startrow = ((index * 2) // n_cols)
    startcol = ((index * 2) % n_cols)
    return (((((2 * startrow) + row_off) * n_cols) + (startcol + col_off)) + 1)