示例#1
0
def main():
    u.create_figures_dir()
    u.set_fonts()
    plt.rcParams['xtick.labelsize'] = 12

    preamble = 'latency_mfgdebs_data'

    for f in functions:
        for w in windows:
            data = {}
            exp_name = f + '_w' + str(w)
            window_size = str(w / 1000.0)
            exp_title = f + ', window ' + window_size + ' seconds'
            for agg in aggs_sorted:
                data[agg] = u.read_latency_data('results/' + preamble + '_' +
                                                agg + '_' + exp_name + '.txt')
            print(exp_name)
            u.make_violin_graph(data, aggs_sorted, exp_name, exp_title,
                                preamble)
def main():
    # matplotlib.use('ps')
    u.create_figures_dir()
    u.set_fonts()
    # plt.style.use('bmh')

    # override these because otherwise our labels get smooshed
    plt.rcParams['xtick.labelsize'] = 7

    preamble = 'latency'

    for f in functions:
        for w in windows:
            data = {}
            exp_name = f + '_w' + str(w)
            window_size = '$2^{' + str(int(math.log(w, 2))) + '}$'
            exp_title = f + ', window ' + window_size
            for agg in aggs_sorted:
                data[agg] = u.read_latency_data('results/' + preamble + '_' +
                                                agg + '_' + exp_name + '.txt')
            print(exp_name)
            u.make_violin_graph(data, aggs_sorted, exp_name, exp_title,
                                preamble)