0
그래프 플로터 앱을 만들고 있습니다. 플롯 영역을 생성 한 후 아래 그림과 같이 -addCurve:index
을 사용하여 그래프를 영역에 추가 할 수 있습니다. I는 탄젠트 함수를 그릴 때마다 두 개의 곡선 사이에 발생코어 플롯에서 탄젠트 도면 그리기
-(void)addCurve:(int)index {
// identifier
NSString *identifier = [NSString stringWithFormat:@"plot%d", index];
CPTScatterPlot *boundLinePlot = [[CPTScatterPlot alloc] init];
CPTMutableLineStyle *lineStyle = [CPTMutableLineStyle lineStyle];
lineStyle.miterLimit = 1.0f;
lineStyle.lineWidth = 3.0f;
lineStyle.lineColor = [CPTColor colorWithCGColor:[colorArray[index-1] CGColor]];
boundLinePlot.dataLineStyle = lineStyle;
boundLinePlot.identifier = identifier;
boundLinePlot.dataSource = self;
[graph addPlot:boundLinePlot toPlotSpace:plotSpace];
// interpolatiom
boundLinePlot.interpolation = CPTScatterPlotInterpolationCurved;
}
그러나, 가장 높은 점과 낮은 점과 연결된 수직 라인을 얻는다. 아무도 내가 그들을 어떻게 없앨 수 있는지 아니? 고맙습니다.
정말 고마워요 !! – user