如何在coreplot ios中使用不同的点绘制平滑曲线?

时间:2022-09-10 16:54:08

I am able to plot a curve, but it is not smooth. In fact, it is totally distracted and wavy. Can anyone help me or suggest a method to make that curve line smooth?

我可以画出一条曲线,但它不是光滑的。事实上,它完全是分心和波动的。谁能帮助我或者建议一个方法使曲线平滑?

Thanks in advance.

提前谢谢。

1 个解决方案

#1


18  

A new option was added to the Core Plot framework after the 1.0 release that draws scatter plots with a smoothed line. You'll need to get the latest code with Mercurial or wait for the next release, currently unscheduled.

在1.0发布之后,一个新的选项被添加到核心情节框架中,这个框架用平滑的线条绘制散点图。您将需要使用Mercurial获得最新的代码,或者等待下一个版本,目前还没有计划。

plot.interpolation = CPTScatterPlotInterpolationCurved;

#1


18  

A new option was added to the Core Plot framework after the 1.0 release that draws scatter plots with a smoothed line. You'll need to get the latest code with Mercurial or wait for the next release, currently unscheduled.

在1.0发布之后,一个新的选项被添加到核心情节框架中,这个框架用平滑的线条绘制散点图。您将需要使用Mercurial获得最新的代码,或者等待下一个版本,目前还没有计划。

plot.interpolation = CPTScatterPlotInterpolationCurved;