for(int i = 0; i < length; i++) {\r
sorter.clear();\r
for(int j = 0; j < n; j++) {\r
+ if(series.get(j).values[1].length == 0)\r
+ continue; // If there are no values, move on to next dataset\r
sorter.add(series.get(j).values[1][i]); // values is a two-dimensional array. 0 dimension == times, 1 == values\r
}\r
Collections.sort(sorter);\r
name = label;\r
if(dataset.result != null && !dataset.result.isEmpty())\r
name = name + " : " + dataset.result;\r
- series.add(new TempSeries(name, new double[][] {ta, va}, width, color));\r
- if(ta.length == 0 || va.length == 0)\r
- System.out.println(dataset.name + " : " + dataset.result + ". Sizes: " + va.length + " and " + ta.length);\r
+ if(ta.length != 0 && va.length != 0)\r
+ series.add(new TempSeries(name, new double[][] {ta, va}, width, color));\r
+ \r
}\r
}\r
\r