【发布时间】:2015-06-29 08:20:11
【问题描述】:
我想知道是否可以在轴描述中使用下标。我有以下代码
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);
有没有办法给字符串“ax [m/s²]”中的 x 下标?下标将是例如X₉
【问题讨论】:
-
你从哪里得到
²? ...你不能用 x 做吗 -
很遗憾这是不可能的。
标签: java jfreechart subscription chartpanel