private void addDatasetsToPlotStates(){
  if (datasetList.isEmpty()) {
    throw new ParserException("You must specify at least one dataset.");
  }
  int actualAutoDatasetNr=0;
  for (  PlotState plotState : parserResult.getPlotStateList()) {
    actualAutoDatasetNr=addDataset(plotState,actualAutoDatasetNr);
    for (    PlotState subPlotState : plotState.getSubplots()) {
      log.info("Add dataset for subplot");
      actualAutoDatasetNr=addDataset(subPlotState,actualAutoDatasetNr);
    }
  }
}

private void addDatasetsToPlotStates ( ) { if ( datasetList . isEmpty ( ) ) { throw new ParserException ( "You must specify at least one dataset." ) ; } int actualAutoDatasetNr = 0 ; for ( PlotState plotState : parserResult . getPlotStateList ( ) ) { actualAutoDatasetNr = addDataset ( plotState , actualAutoDatasetNr ) ; for ( PlotState subPlotState : plotState . getSubplots ( ) ) { log . info ( "Add dataset for subplot" ) ; actualAutoDatasetNr = addDataset ( subPlotState , actualAutoDatasetNr ) ; } } }
is called after parsing everything to fill datasets in each plotstate object
