예제 #1
0
def generate_individual_plots(args, csv_list):
    args.dir = None
    xaxis = args.xaxis if args.xaxis else None
    xmin = Plotter.get_x_min(csv_list, xaxis)
    xmax = Plotter.get_x_max(csv_list, xaxis)
    ymin = Plotter.get_y_min(csv_list, xaxis) + args.offset
    ymax = Plotter.get_y_max(csv_list, xaxis) + args.offset
    for csv in csv_list:
        args.file = csv.fname
        plot = Plotter(args, [csv], xmin, xmax, ymin, ymax)
        plot.generate_plot()
예제 #2
0
def main():
    # STEP 1: Parse args
    args = get_arguments(sys.argv[1:])

    # STEP 2: Get a list of CSV objects.
    csv_list = get_csv_list(args)

    # STEP 3: Create a Plotter and generate plot(s)
    if args.indiv:
        generate_individual_plots(args, csv_list)
    else:
        plot = Plotter(args, csv_list)
        plot.generate_plot()