1819202122232425
public static void main(String[] args) { double[][] points = getPoints(); XYLineChart chart = new XYLineChart(null, "X", null, points); chart.setAutoRange00(true, true); // Axes pass through (0,0) chart.toLatexFile("NormalChart.tex", 12, 8); } }
3839404142434445
double[][] data2 = getPoints2(); double[][] data3 = getPoints3(); // Create a new chart with the previous data series. XYLineChart chart = new XYLineChart(null, "X", "Y", data1, data2, data3); chart.toLatexFile("ChartTest1.tex", 12, 8); } }