def _report_hist_data(self, hist_dict):
    for (k, data_dict) in hist_dict.items():
        w = 6.5
        if (k == ('stmts', 'readers')):
            h = 6
            fig = plt.figure(figsize=(w, h))
            data = {}
            for job_datum in data_dict.values():
                for (rdr, num) in job_datum['data'].items():
                    if (rdr not in data.keys()):
                        data[rdr] = [num]
                    else:
                        data[rdr].append(num)
            N = len(data)
            key_list = list(data.keys())
            xtick_locs = arange(N)
            n = (((N + 1) * 100) + 11)
            ax0 = plt.subplot(n)
            ax0.bar(xtick_locs, [sum(data[k]) for k in key_list], align='center')
            ax0.set_xticks(xtick_locs, key_list)
            ax0.set_xlabel('readers')
            ax0.set_ylabel('stmts')
            ax0.set_title('Reader production')
            rdr_ax_list = []
            for (rdr, stmt_counts) in data.items():
                n += 1
                if (not rdr_ax_list):
                    ax = plt.subplot(n)
                else:
                    ax = plt.subplot(n, sharex=rdr_ax_list[0])
                ax.set_title(rdr)
                ax.hist(stmt_counts, align='left')
                ax.set_ylabel('jobs')
                rdr_ax_list.append(ax)
            if rdr_ax_list:
                ax.set_xlabel('stmts')
        else:
            continue
        figname = ('_'.join(k) + '.png')
        fig.savefig(figname)
        self.reporter.add_image(figname, width=w, height=h, section='Plots')
    return
def _report_hist_data(self, hist_dict):
    for (k, data_dict) in hist_dict.items():
        w = 6.5
        if (k == ('stmts', 'readers')):
            h = 6
            fig = plt.figure(figsize=(w, h))
            data = {}
            for job_datum in data_dict.values():
                for (rdr, num) in job_datum['data'].items():
                    if (rdr not in data.keys()):
                        data[rdr] = [num]
                    else:
                        data[rdr].append(num)
            N = len(data)
            key_list = list(data.keys())
            xtick_locs = arange(N)
            n = (((N + 1) * 100) + 11)
            ax0 = plt.subplot(n)
            ax0.bar(xtick_locs, [sum(data[k]) for k in key_list], align='center')
            ax0.set_xticks(xtick_locs, key_list)
            ax0.set_xlabel('readers')
            ax0.set_ylabel('stmts')
            ax0.set_title('Reader production')
            rdr_ax_list = []
            for (rdr, stmt_counts) in data.items():
                n += 1
                if (not rdr_ax_list):
                    ax = plt.subplot(n)
                else:
                    ax = plt.subplot(n, sharex=rdr_ax_list[0])
                ax.set_title(rdr)
                ax.hist(stmt_counts, align='left')
                ax.set_ylabel('jobs')
                rdr_ax_list.append(ax)
            if rdr_ax_list:
                ax.set_xlabel('stmts')
        else:
            continue
        figname = ('_'.join(k) + '.png')
        fig.savefig(figname)
        self.reporter.add_image(figname, width=w, height=h, section='Plots')
    return