Exemplo n.º 1
0
    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:
        plot.title(args.title)
    if args.y_label is not None:
        plot.ylabel(args.y_label)
    plot.xlabel(args.x_label)
    if args.output == "pdf":
        plot.save_pdf(args.plot_name)
        plot.save_tikz(args.plot_name + "_tikz.tex")
        plot.save_tex(args.plot_name)
    elif args.output == "tex":
        plot.save_tex(args.plot_name)
    elif args.output == "tikz":
        plot.save_tikz(args.plot_name + ".tex")
Exemplo n.º 2
0
        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:
        plot.title(args.title)
    if args.y_label is not None:
        plot.ylabel(args.y_label)
    plot.xlabel(args.x_label)
    if args.output == "pdf":
        plot.save_pdf(args.plot_name)
        plot.save_tikz(args.plot_name + "_tikz.tex")
        plot.save_tex(args.plot_name)
    elif args.output == "tex":
        plot.save_tex(args.plot_name)
    elif args.output == "tikz":
        plot.save_tikz(args.plot_name + ".tex")