private void doCharts(Segment segment) {
this.allCharts = new XYChart("Segmentos", "Muestras", "Amplitud (%)");
Iterator<SelectedSegment> segments = this.parentControl.getSelectionModel().getSelectedSegments().iterator();
while (segments.hasNext()) {
SelectedSegment selectedSegment = segments.next();
this.allCharts.addSeries("Seg-" + (selectedSegment.getNumber() + 1), selectedSegment.getSegment().toDoubleArray(), 1);
}
this.finalSegment = new XYChart("Curva Final", "Tiempo (ms)", "Amplitud (%)");
this.finalSegment.addSeries("Latido", segment.toDoubleArray(), this.currentAnalysis.getSignalFrequency().getFrequency().doubleValue());
}