public void updateThresholdStripLines() { Charting.ClearThresholdStripLines(residualChart); Charting.AddThresholdStripLine(residualChart, offset: 0, color: Color.Red); Charting.AddThresholdStripLine(residualChart, offset: connection_selected.kalman_filter.getDelta(), color: Color.Red); Charting.AddThresholdStripLine(residualChart, offset: -connection_selected.kalman_filter.getDelta(), color: Color.Red); }
private void InitialSettings() { // application directory file_path = Directory.GetCurrentDirectory(); toolStripLabel.Text = "Dir: " + file_path; // chart settings Charting.ClearThresholdStripLines(residualChart); Charting.AddThresholdStripLine(residualChart, offset: 0, color: Color.Red); Charting.AddThresholdStripLine(residualChart, offset: config.anomalyDetector.cusumDelta, color: Color.Red); Charting.AddThresholdStripLine(residualChart, offset: -config.anomalyDetector.cusumDelta, color: Color.Red); Charting.InitializeChartSettings(dataChart, title: ""); Charting.InitializeChartSettings(residualChart, title: ""); Charting.InitializeChartSettings(securityChart, title: "Magnitude"); }