oxyplot / oxyplot

A cross-platform plotting library for .NET
https://oxyplot.github.io/
MIT License
3.3k stars 963 forks source link

can't see the view below the scroll bar, you can't zoom #1295

Open visualczm opened 5 years ago

visualczm commented 5 years ago

//如果數據大於顯示區域,將圖縮放至所有的界面中 if (timeaxis.DataMaximum > 55) { timeaxis.Zoom(0, timeaxis.DataMaximum);//zoom all data }

.NET version: v4.0.30319 image image

If you can see oxyplot(M2),is working image

image

M2 real time view in panel Can't see, zoom data not working image

image

objorke commented 5 years ago

Sorry, I don't understand this issue, can somebody help?

visualczm commented 5 years ago

Sorry, I don't understand this issue, can somebody help?

I'm sorry

Axis DataMaximum is 0 if the plotview is not displayed on the interface (the plotview is obscured by the control).

var timeaxis = listPlot[i - 1].ActualModel.GetAxisOrDefault("Time", null); //point timeaxis.DataMaximum //return 0