Exemplo n.º 1
0
if args.plot:
    plot = PlotLib()

    plot.set_plot_dimensions(args.plot_width, args.plot_height)

    if args.y_tics_step is not None:
        plot.set_y_tics_step(args.y_tics_step)
    elif args.normalize is not None:
        plot.set_y_tics_step(0.1)

    plot.set_ceiling(args.ceiling)

    legend = [name for name in set_order if name not in args.ignore]
    if args.no_legend:
        legend = []
    plot.set_legend_shift(args.legend_x_shift, args.legend_y_shift)

    if args.plot_line:
        xtics = range(0, (len(workload_order)/args.x_tics_step)*args.x_tics_step + args.x_tics_step - 1,\
            args.x_tics_step)
        lines = [[(i,val) for i,val in enumerate(kv.values(name, key_order = \
            workload_order))] for name in set_order if name not in args.ignore]
        plot.continuous_lines(lines, legend, value_base = args.value_base, \
            xtics = xtics, x_padding = args.x_padding, use_markers = 0)

    else:
        plot.column_stacked_bars(workload_order, [kv.values(name, key_order = \
            workload_order)  for name in set_order if name not in args.ignore],\
            legend, value_base = args.value_base)

    if args.title is not None:
Exemplo n.º 2
0
bfxtics = [0.18, 0.36, 0.73, 1.47, 2.94, 5.88]
bfxlabel = 'Percentage Overhead of Bloom Filter vs Cache Size'
bfylabel = '\% Weighted Speedup Improvement over LRU'
bflegend = ['1-Core', '2-Core', '4-Core']
bfystep = 3

bfplotname = 'bf-size'

#################################

plot = PlotLib()

legend = eflegend
plot.set_y_tics_step(efystep)
plot.set_y_tics_shift(0)
plot.set_legend_shift(-50,-10)
plot.set_plot_dimensions(150,80)
plot.set_scale(0.5)
plot.set_y_tics_font_size("scriptsize")
plot.set_x_tics_font_size("scriptsize")
plot.set_y_label_font_size("small")
plot.set_x_label_font_size("small")
plot.set_ceiling(0.8)

plot.xlabel(efxlabel, yshift = -10, fontsize = "small", options =
"[scale=0.8]")
plot.ylabel(efylabel, xshift = -2, fontsize = "small", options = "[scale=0.8]")

plot.continuous_lines(efdata, legend = legend, xtics = eaffrac, use_markers = 2, x_padding = 5)
                      
#plot.column_stacked_bars(workload_order, [kv.values(name, key_order = workload_order) for name in mechanisms], legend)
Exemplo n.º 3
0
bfxtics = [0.18, 0.36, 0.73, 1.47, 2.94, 5.88]
bfxlabel = 'Percentage Overhead of Bloom Filter vs Cache Size'
bfylabel = '\% Weighted Speedup Improvement over LRU'
bflegend = ['1-Core', '2-Core', '4-Core']
bfystep = 3

bfplotname = 'bf-size'

#################################

plot = PlotLib()

legend = eflegend
plot.set_y_tics_step(efystep)
plot.set_y_tics_shift(0)
plot.set_legend_shift(-50, -10)
plot.set_plot_dimensions(150, 80)
plot.set_scale(0.5)
plot.set_y_tics_font_size("scriptsize")
plot.set_x_tics_font_size("scriptsize")
plot.set_y_label_font_size("small")
plot.set_x_label_font_size("small")
plot.set_ceiling(0.8)

plot.xlabel(efxlabel, yshift=-10, fontsize="small", options="[scale=0.8]")
plot.ylabel(efylabel, xshift=-2, fontsize="small", options="[scale=0.8]")

plot.continuous_lines(efdata,
                      legend=legend,
                      xtics=eaffrac,
                      use_markers=2,
Exemplo n.º 4
0
if args.plot:
    plot = PlotLib()

    plot.set_plot_dimensions(args.plot_width, args.plot_height)

    if args.y_tics_step is not None:
        plot.set_y_tics_step(args.y_tics_step)
    elif args.normalize is not None:
        plot.set_y_tics_step(0.1)
    
    plot.set_ceiling(args.ceiling)

    legend = [name for name in set_order if name not in args.ignore]
    if args.no_legend:
        legend = []
    plot.set_legend_shift(args.legend_x_shift, args.legend_y_shift)

    if args.plot_line:
        xtics = range(0, (len(workload_order)/args.x_tics_step)*args.x_tics_step + args.x_tics_step - 1,\
            args.x_tics_step)
        lines = [[(i,val) for i,val in enumerate(kv.values(name, key_order = \
            workload_order))] for name in set_order if name not in args.ignore]
        plot.continuous_lines(lines, legend, value_base = args.value_base, \
            xtics = xtics, x_padding = args.x_padding, use_markers = 0)

    else:
        plot.column_stacked_bars(workload_order, [kv.values(name, key_order = \
            workload_order)  for name in set_order if name not in args.ignore],\
            legend, value_base = args.value_base)