Zedgraph, log x-axis values ​​are repeated again

I am setting the x-axis as a logarithmic scale. The maximum value is 10000 and the minimum value is 1.

GraphPane mypane = zedgraphcontrol.GraphPane;
mypane.XAxis.Type = AxisType.Log;
myPane.XAxis.Scale.Min = 1;
myPane.XAxis.Scale.Max = 10000;

      

But then the graph looks like this:

enter image description here

The values: 10 ^ 0, 10 ^ 1, 10 ^ 2, 10 ^ 3, 10 ^ 4 are repeated at least 2 times. It looks like the 2 x-axes overlap each other. Can anyone tell me what I did wrong?

+3


source to share


1 answer


Maybe it's just a glitch, I found a workaround by calling AxisChange () before setting Min and Max:



mypane.XAxis.Type = AxisType.Log;
mypane.AxisChange();
mypane.XAxis.Scale.Min = 1;
mypane.XAxis.Scale.Max = 10000;

      

+3


source







All Articles