public static DefaultCategoryDataset createDataset(Population pop) {
		DefaultCategoryDataset linedataset = new DefaultCategoryDataset();
		BarHistory bh = pop.getBarHistory(pop.getBarCycles());
		Integer[] plainFreq = bh.getPlainFreq();
		Integer[] starFreq = bh.getStarFreq();
		
		for(int i=0;i<101;i++) {
			if(plainFreq[i]>0) {
				linedataset.addValue(plainFreq[i], "Plain-Bellied", new Integer(i).toString());
			}
			if(starFreq[i]>0) {
				linedataset.addValue(starFreq[i], "Star-Bellied", new Integer(i).toString());
			}
		}
		return linedataset;
	}