我有一个代码可以绘制多个极坐标系列,其中幅度(值) vs 阶段(度)。缩短提供的代码以绘制单个系列 S(1,1)。
Chart1.ChartAreas("ChartArea1").AxisX.Minimum = 0
Chart1.ChartAreas("ChartArea1").AxisX.Maximum = 360
Chart1.ChartAreas("ChartArea1").AxisX.Interval = 45
Chart1.ChartAreas("ChartArea1").AxisX.Crossing = 90 'To change the X axis starting point
Chart1.ChartAreas("ChartArea1").AxisX.Title = "Magnitude in value"
Chart1.ChartAreas("ChartArea1").AxisY.Minimum = 0
Chart1.ChartAreas("ChartArea1").AxisY.Maximum = 1.2
Chart1.ChartAreas("ChartArea1").AxisY.Interval = 0.2
Chart1.ChartAreas("ChartArea1").AxisY.LabelStyle.Format = "{0:0.#}"
Chart1.ChartAreas("ChartArea1").AxisY.Title = "Phase in degree"
Chart1.Series.Add("S(1,1)")
Chart1.Series("S(1,1)").BorderWidth = 2
Chart1.Series("S(1,1)").Points.DataBindXY(para1, para2) 'para1 is a Double array containing the phase in degree and para2 is a Double array containing the Magnitude in value
Chart1.Series("S(1,1)").ChartType = DataVisualization.Charting.SeriesChartType.Polar
工作正常。但是,绘图的方向是顺时针方向,如下所示。
我试图将此绘图的方向改为逆时针方向,顶部为90度,底部为270度。我所能做的就是改变X轴起点。我在how to change the orientation of the plot上查了一个论坛,但它只提到如何将相位值更改为 360 - 原始值并更改X轴标签。这对我的情况没有帮助,因为我想通过添加标记来检查数据点,它会显示错误的值。
任何帮助将不胜感激!!!