如何显示对数X轴次要标签? [英] How to display logarithmic x-axis minor label?

查看:90
本文介绍了如何显示对数X轴次要标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将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轴次要标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆