更改 CorePlot 中轴上数字的大小

Changing size of numbers on axes in CorePlot

如何改变轴上数字的大小?我需要在 y 轴上嵌入 100 个数字,但现在看起来很糟糕

您可以使用文字样式更改文字大小。在轴上为主要刻度标签设置 labelTextStyle and/or,为次刻度标签设置 minorTickLabelTextStyle

设置文本样式的示例代码:

CPTMutableTextStyle *textStyle = [CPTMutableTextStyle textStyle];
textStyle.color    = [CPTColor grayColor];
textStyle.fontName = @"Helvetica-Bold";
textStyle.fontSize = 18.0;