public void addAnomalies(XYPlot plot,ArrayList<Anomaly> anomalyList){
  for (  Anomaly a : anomalyList) {
    IntervalSequence is=a.intervals;
    for (    Interval i : is) {
      ValueMarker marker=new ValueMarker(i.index);
      marker.setPaint(Color.black);
      plot.addDomainMarker(marker);
    }
  }
}

public void addAnomalies ( XYPlot plot , ArrayList < Anomaly > anomalyList ) { for ( Anomaly a : anomalyList ) { IntervalSequence is = a . intervals ; for ( Interval i : is ) { ValueMarker marker = new ValueMarker ( i . index ) ; marker . setPaint ( Color . black ) ; plot . addDomainMarker ( marker ) ; } } }
add anomalies to the plot .
