double[][] data1 = getPoints1();
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);
}