public void DrawNeutronWay(Neutron neutron) { if (neutron.CollisionPoint.Count == 0) { return; } var neutronCollisionSeries = new LineSeries { StrokeThickness = 2, MarkerSize = 3, MarkerStroke = OxyColors.Black, MarkerType = MarkerType.Circle, CanTrackerInterpolatePoints = false, //Title = $"Neutron {(SimulateOnePlotModel.Series.Count + 1).ToString("E2")}; MeanFreeLenght: {(neutron.AverageFreePathLength).ToString("E2")}; TotalLenght: {(neutron.PathLength).ToString("E2")}", Smooth = false, }; neutron.CollisionPoint.ForEach(p => neutronCollisionSeries.Points.Add(new DataPoint(p.X, p.Y))); SimulateOnePlotModel.Series.Add(neutronCollisionSeries); SimulateOnePlot.ResetAllAxes(); SimulateOnePlot.InvalidatePlot(); neutron.CollisionPoint.ForEach(p => Console.WriteLine(p.X + @"; " + p.Y)); Console.WriteLine(); }
private void ResetSimulateOneButton_Click(object sender, RoutedEventArgs e) { SimulateOnePlotModel.Series.Clear(); SimulateOnePlot.ResetAllAxes(); }