代码之家  ›  专栏  ›  技术社区  ›  bolt

更改CorePlot中轴上数字的大小

  •  0
  • bolt  · 技术社区  · 8 年前

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

    1 回复  |  直到 8 年前
        1
  •  0
  •   Eric Skroch    8 年前

    可以使用文字样式更改文字大小。设置 labelTextStyle minorTickLabelTextStyle 对于次要刻度标签。

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

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