CorePlot 实时绘图
我是 coreplot 的新手,不确定从哪里开始。我想在数据点到达时绘制它们。我正在记录手指触摸以及每次触摸之间的时间间隔。我想在它们发生时绘制它们。
感谢您的指点。
RD42
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在绘图上使用
-insertDataAtIndex:numberOfRecords:
方法来添加数据点。该图将调用您的数据源来加载新数据。如果您想删除旧数据点,也有相应的删除方法。另一种方法是在绘图上调用-reloadData
,但如果旧数据点未更改,则没有必要。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.