zygimantus
4/21/2015 - 12:16 PM

Some useful snippets of code for JFreeChart.

Some useful snippets of code for JFreeChart.

// changes fonts of both axes:
NumberAxis xAxis = (NumberAxis) plot.getDomainAxis();
NumberAxis yAxis = (NumberAxis) plot.getRangeAxis();
xAxis.setTickLabelFont(new Font("Arial", 0, 28));
yAxis.setTickLabelFont(new Font("Arial", 0, 28));