简体   繁体   中英

How to prevent axis from auto-scaling?

Each time I add new data to series, Y axis is panning/zooming automatically in order to fit new data into screen. How can I prevent Oxyplot from touching the axis? I would like to have the scale fixed all the time, no matter what data I feed to plot

As @Taw stated, the properties in oxyplot are the same:

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM