public static void main(String[] args) {
		int generator;
		if (args.length == 0) {
			System.out.println("Please specify the name of the data file to plot.");
			System.exit(1);
		}
		try{
			generator = Integer.parseInt(args[0]);
			if (generator < 1 || generator > ConvexHull.generatorNames.length) {
				System.out.println("If you specify a generator by number, please use the numbers 1 through " + ConvexHull.generatorNames.length + ".");
				System.exit(1);
			}
		} catch (NumberFormatException e) {
			generator = 0;
			for (int i = 0; i < ConvexHull.generatorNames.length; i++) {
				if (ConvexHull.generatorNames[i].equals(args[0]))
					generator = i+1;
			}
			if (generator == 0) {
				System.out.println("The dataset you specified was not recognized.");
				System.exit(1);
			}
		}
		generator--;
		String data = ConvexHull.generatorNames[generator] + ".txt";
		scatter = ConvexHull.readInput(data);
		hull = ConvexHull.readOutput(data);
		
		JFrame f = new JFrame();
		f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.add(new Plot());
		f.setSize(400, 400);
		f.setLocation(100, 100);
		f.setVisible(true);
		
	}