问题描述
我将x轴设置为对数刻度,但它仅显示主要标签exp: 1E000、1E001、1E002等... 现在,我还想显示次要值,例如例如: 2E000、3E000、4E000,...,2E001、3E001,.....
I set x-axis as logarithmic scale, but it only displays the major labels, exp : 1E000, 1E001, 1E002, etc... Now i also want to display the minor values, for example : 2E000, 3E000, 4E000,..., 2E001, 3E001, .....
它应该看起来像下面的图:
it should look like the graph below :
这似乎是一个简单的问题,但我找不到解决此问题的方法.谁能帮我吗?
It seems a simple question but i can't find the way to solve this problem. Can anyone help me ?
先谢谢了.
推荐答案
此问题与此.
我花了很长时间才解决这个问题,但是:
It took me a long time to solve this one, but:
如果将MinorGrid
Interval
设置为1,则将获得传统的对数网格标记,每十年十个:
If you if you set the MinorGrid
Interval
to 1, then you get the traditional Logarithmic grid marks, ten per decade:
aChart.ChartAreas[0].AxisX.IsLogarithmic = true;
aChart.ChartAreas[0].AxisX.MinorGrid.Interval = 1;
aChart.ChartAreas[0].AxisX.MinorGrid.Enabled = true;
这篇关于如何显示对数X轴次要标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!