// It's okay to modify the original data.
PhaseCalcs.setPhases(model.getResiduals(), epoch, period);
// Create model table model and GUI component since they have
// not been.
PhasePlotModelObservationTableModel residualsTableModel = new PhasePlotModelObservationTableModel(
model.getResiduals(), SeriesType.Residuals);
String summary = model.toString();
SyntheticObservationListPane<AbstractModelObservationTableModel> residualsPane = new SyntheticObservationListPane<AbstractModelObservationTableModel>(
residualsTableModel, summary);