if args.type == 'Pie' and args.title == None: parser.error('If you want a Pie plot, you also have to set a title with -title argument') if args.type == "bar": parse_bar = ParseBar(args.input) dict_bar = parse_bar.process_data() if args.dimension == "2D": bar = Bar2D(dict_bar) else: bar = Bar(dict_bar) if args.view == "image": bar.init("image") else: bar.init("gui") elif args.type == "scatter": parse_scatter = ParseScatter(args.input) dict_scatter = parse_scatter.process_data() if args.dimension == "2D": scatter = Scatter2D(dict_scatter) else: scatter = Scatter(dict_scatter) if args.view == "image": scatter.init("image") else: