public PlotViewModel(PlotAnimationGrouping plotGroup, Plot plot) { if (plotGroup == null || plot == null) { throw new ArgumentNullException(); } this.plotGroup = plotGroup; Plot = plot; }
private void UpdatePlot() { if (TestBench.Steps.Count == 0) { return; } var animationAxis = new PlotAxis { Max = TestBench.MaxVoltage.Volts, Min = TestBench.MinVoltage.Volts, MajorSpan = TestBench.StepSize.Volts, Title = "Bias (V)" }; PlotGroup = new PlotAnimationGrouping(animationAxis, d => CreatePlot(TestBench.GetStep(new ElectricPotential(d)))); NeedsScreenshot = true; }