OxyPlot:无法设置轴值 [英] OxyPlot:Cannot setting Axis values
问题描述
我一直想通过使用ActualMinimum
和ActualMaximum
之类的属性来设置y轴的最小值和最大值,但是即使将MinimumPadding
和MaximumPadding
设置为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 !
推荐答案
请使用属性AbsoluteMaximum
和AbsoluteMinimum
将轴限制为特定值:
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,
});
我认为属性ActualMinimum
和ActualMaximum
用于将轴限制为初始值,但是您以后可以缩小.
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屋!