我很难尝试使用 zedgraph 获取 excel 半对数图:
我目前有:
为了做到这一点,我有
Dim pane As New GraphPane()
'reverse order
pane.X2Axis.IsVisible = True
pane.XAxis.IsVisible = False
pane.YAxis.Scale.IsReverse = True
pane.YAxis.Scale.IsPreventLabelOverlap = True
' log type
pane.X2Axis.Type = AxisType.Log
pane.AxisChange()
' the y axis scale
pane.YAxis.Scale.Min = -20
pane.YAxis.Scale.Max = 120
'here I tried to manipulat x axis but had no success
'the data
Dim list As New PointPairList()
Dim list2 As New PointPairList()
list.Add(0, 0)
list.Add(125, 0)
list.Add(250, 0)
list.Add(500, 5)
list.Add(750, 5)
list.Add(1000, 10)
list.Add(1500, 10)
list.Add(2000, 5)
list.Add(3000, 10)
list.Add(4000, 10)
list.Add(6000, 10)
list.Add(8000, 20)
list2.Add(125, 30)
list2.Add(500, 30)
list2.Add(750, 40)
list2.Add(1000, 50)
list2.Add(1500, 65)
list2.Add(2000, 65)
list2.Add(3000, 70)
list2.Add(4000, 80)
list2.Add(6000, 90)
list2.Add(8000, 100)
Dim myCurve As LineItem = pane.AddCurve("Series 1", list, Color.Blue, SymbolType.Diamond)
Dim myCurve2 As LineItem = pane.AddCurve("Series 2", list2, Color.Magenta, SymbolType.Square)
如您所见,数据x2=125,250,500,750,1与 EXCEL 半对数图不同,因为 zedgraph 的数字非常小,仅在这一部分......
如何用zedgraph获取想要的excel图表?
有没有办法只缩放那部分或其他东西?
为什么会出现10^-1, 10^0 ,10^1
?并不是10^2, 10^3 10^4