OxyPlot:无法设置轴值 [英] OxyPlot:Cannot setting Axis values

查看:467
本文介绍了OxyPlot:无法设置轴值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直想通过使用ActualMinimumActualMaximum之类的属性来设置y轴的最小值和最大值,但是即使将MinimumPaddingMaximumPadding设置为0,我也无法工作.还尝试了轴的缩放方法,它没有用.抱歉,我无法上传图片...

I have been tying to set the min and max values of y axis by using properties like ActualMinimum and ActualMaximum,but i doesn't work even I set the MinimumPadding and MaximumPadding to 0. I also tried the Zoom method of axis, it did not work. Sorry that I cannot upload a pic...

有人可以在这方面指导我吗?很感谢任何形式的帮助.谢谢!

Could someone please guide me in this regard ? Any help is very much appreciated. Thanks !

推荐答案

请使用属性AbsoluteMaximumAbsoluteMinimum将轴限制为特定值:

Please use the properties AbsoluteMaximum and AbsoluteMinimum to limit the axes to a specific value:

plotModel.Axes.Add(new LinearAxis
        {
            Position = AxisPosition.Left,
            AbsoluteMaximum = 5.5,
            AbsoluteMinimum = 0,
        });

我认为属性ActualMinimumActualMaximum用于将轴限制为初始值,但是您以后可以缩小.

In my opinion the properties ActualMinimum and ActualMaximum are used to limit the axes to an initial value but you are able to zoom out later.

这篇关于OxyPlot:无法设置轴值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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