I want to compare time series data in just one graphic. I added several data sets to same plot and plot it - just one data set is shown. Documentation missing, existing questions useless..
Question: Why is just one data set represented? And also, why is its' title not used to create a legend?
My code (sniped):
//first, create terminal to write png files (not shown)
..
//create the three data sets (just shown for first data set here)
double[][] original = combinedSequence.getOriginalValues();
AbstractPlot originalPlot = new DataSetPlot(original);
originalPlot.setTitle("'original'");
..
//add the three data set plots
p.addPlot(originalPlot);
p.addPlot(offsetPlot);
p.addPlot(functionPlot);
//plot graph
p.newGraph();
p.plot();
Two things:
So, a correct version of your code will be: