CorePlot 实时绘图

发布于 2024-09-29 08:40:13 字数 112 浏览 0 评论 0原文

我是 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

伤痕我心 2024-10-06 08:40:13

您可以在绘图上使用 -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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文