내보기에서 배경 이미지로 주 그리드 선을 정렬하고 싶습니다 좌표 그래서 나는이 지금까지했던 :Coreplot majorTickLocations 사용하여보기
CPTXYAxisSet *axisSet = (CPTXYAxisSet *) self.hostView.hostedGraph.axisSet;
CPTAxis *x = axisSet.xAxis;
x.labelingPolicy = CPTAxisLabelingPolicyLocationsProvided;
//Other x axis config
NSMutableSet *xMajorLocations = [NSMutableSet set];
[xMajorLocations addObject:[NSNumber numberWithFloat:0.0f]];
[xMajorLocations addObject:[NSNumber numberWithFloat:341.0f]];
[xMajorLocations addObject:[NSNumber numberWithFloat:638.0f]];
x.majorTickLocations = xMajorLocations;
문제는 중요한 위치를 상대적이다 플롯 된 데이터 대신보기 좌표를 사용하는 방법이 있습니까? CPTAxisLabelingPolicyEqualDivisions
배경 이미지에 선을 추가 할 수 있습니까? –
그럴 수도 있겠지만, x 축 라벨을 좋아하지 않을 것입니다. 맞습니까? –