I have a scatter plot using CorePlot. For the Y Axis, I have custom intervals between tick marks that are provided.
yAxis.labelingPolicy = CPTAxisLabelingPolicyLocationsProvided;
NSArray *labels = [NSArray arrayWithObjects:@"100",@"280",@"360",@"860",@"910",nil];
NSMutableSet *amountLabels = [NSMutableSet set];
NSMutableSet *majorTickLocations = [NSMutableSet set];
[creditScores
enumerateObjectsUsingBlock:
^(NSString *amount, NSUInteger index, BOOL *stop)
{
CPTAxisLabel *label = [[CPTAxisLabel alloc] initWithText:score textStyle:[self defaultTextStyle]];
NSNumber *location = [NSNumber numberWithFloat:[amount floatValue]];
[majorTickLocations addObject:location];
label.tickLocation = CPTDecimalFromCGFloat([location floatValue]);
[amountLabels addObject:label];
}];
yAxis.majorTickLocations = majorTickLocations;
yAxis.axisLabels = amountLabels;
I want to adjust the physical distance (in points or pixels) between each tick mark. The design I want will not be proportionally correct. Is there a way to set or define the distance between each tick mark?