Subscript in Axis description
I wanted to know if it is possible to use subscript in axis description. I have the following code XYItemRenderer lineYY = new StandardXYItemRenderer(); lineYY.setSeriesPaint(0, Color.BLUE); lineYY.setSeriesVisibleInLegend(0,false); final NumberAxis yaxY = new NumberAxis("ax [m/s²]"); yaxY.setRange(-11, 11); yaxY.setAutoRangeIncludesZero(false); XYPlot plotYY = new XYPlot(datasetY,null,yaxY, lineYY); plotYY.setRangeAxisLocation(AxisLocation.TOP_OR_LEFT); Is there a way to subscript the x in the String "a x [m/s²]"? An subscript would be e.g. X₉ Using the approach shown here , you can specify