去掉对面的轴,可以全部去掉,也可以只剩下x轴或者Y轴。
GraphPane myPane = zedGraphControl1.GraphPane;
LineItem myCurve = myPane.AddCurve("Parabola",
list1, Color.Red, SymbolType.None);
myPane.Title.Text = "";
myPane.Legend.IsVisible = false;
myPane.YAxis.Title.Text = "";
// Set the Y axis intersect the X axis at an X value of 0.0
//myPane.YAxis.Cross = 0.0;
// Turn off the axis frame and all the opposite side tics
myPane.Chart.Border.IsVisible = false; //去除border
myPane.XAxis.MajorTic.IsOpposite = false; //去线
myPane.XAxis.MinorTic.IsOpposite = false;
myPane.YAxis.MajorTic.IsOpposite = false;
myPane.YAxis.MinorTic.IsOpposite = false;