开发者

CorePlot real time graphing

开发者 https://www.devze.com 2023-01-22 15:05 出处:网络
I\'m new to coreplot and not sure quite where to start. I would like to plot data points as they arrive.I\'m recording finger touches and how long between 开发者_运维知识库each touch.I would like to p

I'm new to coreplot and not sure quite where to start. I would like to plot data points as they arrive. I'm recording finger touches and how long between 开发者_运维知识库each touch. I would like to plot them as they are happening.

Thanks for any pointers.

rd42


You can use the -insertDataAtIndex:numberOfRecords: method on your plot to add data points. The plot will call your datasource to load the new data. There is a corresponding delete method as well if you want to drop off the old data points. The alternative is to call -reloadData on the plot, but that's unnecessary if the old data points haven't changed.

0

精彩评论

暂无评论...
验证码 换一张
取 消