Reputation: 13
Can anyone tell me how I can proceed to change the color of the axes' labels as circled below?
Upvotes: 1
Views: 241
Reputation: 7126
You can use setTickLabelPaint()
and setLabelPaint()
like this:
Axis domain = plot.getDomainAxis();
domain.setTickLabelPaint(Color.blue);
domain.setLabelPaint(Color.blue);
Axis range = plot.getRangeAxis();
range.setTickLabelPaint(Color.red);
range.setLabelPaint(Color.red);
Upvotes: 1