iPhone CP散点图
如何在 CPScatterplot 中制作平滑的线条。使散点图像曲线图一样。
我用这个代码
CPScatterPlot.dataSource = self;
CPScatterPlot.dataLineStyle.lineWidth = 3.0f;
How to make a smooth line in CPScatterplot .To make scatterplot like a curve chart.
i use this code
CPScatterPlot.dataSource = self;
CPScatterPlot.dataLineStyle.lineWidth = 3.0f;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
为了供将来参考,此功能现已在 Core Plot Issue #156 中得到解决。从 0.9 开始,它还没有被合并,但是可以在 http 上找到差异://code.google.com/p/core-plot/issues/detail?id=156
For future reference, this feature has now been addressed in Core Plot issue #156. As of 0.9 it has not been merged however a diff is available at http://code.google.com/p/core-plot/issues/detail?id=156
核心图仅在数据点之间绘制直线段。您可以在现有数据之间插入额外的点,但您必须自己计算这些值才能获得所需的曲线。如果插入足够多的点,它将看起来是一条平滑的曲线。
Core Plot only draws straight line segments between your data points. You can insert extra points between your existing data, but you have to calculate the values yourself to get the desired curve. If you insert enough points, it will appear to be a smooth curve.
试试这个可能会有帮助。
Try this one May be Helped.