def METHOD_NAME(df, ctf_id):
    min_defocus = 5000  ##remove if input parameter
    max_defocus = 35000  ##remove if input parameter
    max_ctf_res = 10
    df = df[df['DETECTED_RING_RESOLUTION'] < max_ctf_res]
    df = df[df['CTF_ESTIMATION_JOB_ID'] == ctf_id]
    def_mean = np.mean(df['DEFOCUS1'])
    def_mean = np.mean(df['DEFOCUS1'])
    def_mean_micron = def_mean / 10000
    fig, ax = plt.subplots(1, 1)
    sns.distplot(df['DEFOCUS1'], bins=100, kde=False)
    plt.xlim(min_defocus, max_defocus)
    plt.axvline(x=def_mean)
    plt.ylabel('micrographs')
    plt.title('Distribution of defocus values for ctf_id %s, mean = -%3.2f microns' % (ctf_id, def_mean_micron))
    #     plt.savefig('defocus_histogram_CTF_ctf_id_%s' %ctf_id)
    return fig