Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Draw SMOOTH curve using different points in coreplot ios?

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.

like image 834
Dhruv Avatar asked May 17 '12 08:05

Dhruv


1 Answers

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.

plot.interpolation = CPTScatterPlotInterpolationCurved;
like image 124
Eric Skroch Avatar answered Nov 04 '22 15:11

Eric Skroch