def sample_histograms(fig, input_sample, problem, param_dict):
    """Plots a set of subplots of histograms of the input sample

    """
    num_vars = problem['num_vars']
    names = problem['names']
    framing = 101 + num_vars * 10
    num_levels = len(set(input_sample[:, (1)]))
    out = []
    for variable in range(num_vars):
        ax = fig.add_subplot(framing + variable)
        out.append(ax.hist(input_sample[:, (variable)], bins=num_levels,
            density=False, label=None, **param_dict))
        ax.set_title('%s' % names[variable])
        ax.tick_params(axis='x', which='both', bottom='off', top='off',
            labelbottom='off')
        if variable > 0:
            ax.tick_params(axis='y', which='both', labelleft='off')
    return out
