【问题标题】:How to prevent axis from auto-scaling?如何防止轴自动缩放?
【发布时间】:2016-06-14 22:04:57
【问题描述】:

每次我向系列中添加新数据时,Y 轴都会自动平移/缩放,以便将新数据放入屏幕。如何防止 Oxyplot 接触轴?无论我要绘制什么数据,我都希望始终固定比例

【问题讨论】:

  • 我不知道 oxyplot;在 ms 图表中,您将设置轴范围,即 axis.minimum & maximum

标签: c# oxyplot


【解决方案1】:

正如@Taw 所说,oxyplot 中的属性是相同的:

plotModel.Axes.Add(new LinearAxis()
{
    Position = AxisPosition.Left,
    Minimum = 0,
    Maximum = 10,
});

plotModel.Axes.Add(new LinearAxis()
{
    Position = AxisPosition.Bottom,
    Minimum = 0,
    Maximum = 10,
});

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-02-24
    • 1970-01-01
    • 2022-11-23
    • 1970-01-01
    • 2021-01-03
    • 2015-02-23
    相关资源
    最近更新 更多