【问题标题】:Change axis label Color (JfreeChart)更改轴标签颜色 (JfreeChart)
【发布时间】:2022-07-20 22:33:09
【问题描述】:

谁能告诉我如何继续更改轴标签的颜色,如下图所示?

【问题讨论】:

    标签: jfreechart


    【解决方案1】:

    你可以像这样使用setTickLabelPaint()

    Axis domain = plot.getDomainAxis();
    domain.setTickLabelPaint(Color.blue);
    Axis range = plot.getRangeAxis();
    range.setTickLabelPaint(Color.red);
    

    【讨论】:

      猜你喜欢
      • 2011-01-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-04
      相关资源
      最近更新 更多