/// <summary> /// Sets the x-axis and y-axis for the plots with corresponding axis labels /// </summary> private void SetAxes(PlotModel plotModel) { if (plotModel.Equals(NyquistPlotModel)) { SetAxesNyquistPlot(); ChangePanMouseButton(nyquistPlotView); } else if (plotModel.Equals(BodePlotModel)) { SetAxesBodePlot(); ChangePanMouseButton(bodePlotView); } }
/// <summary> /// Sets the plot type, title and axes /// </summary> /// <param name="plotModel"></param> /// <param name="title"></param> private void SetPlot(PlotModel plotModel, string title) { plotModel.PlotType = plotModel.Equals(NyquistPlotModel) ? PlotType.Cartesian : PlotType.XY; plotModel.Title = title; plotModel.IsLegendVisible = true; plotModel.TitleFontSize = 14; SetAxes(plotModel); //Sets the plot axes }