我们有一个星云IXYGraph
,想要从其x轴上删除刻度线(或至少刻度线标签)。
到目前为止我尝试过的事情:
IXYGraph graph = new XYGraph();
Axis primaryXAxis = graph.getPrimaryXAxis();
primaryXAxis.setFormatPattern(""); // could not find a pattern that removes the labels
primaryXAxis.setMinorTicksVisible(false); // removes only minor tick marks
primaryXAxis.setMajorTickMarkStepHint(Integer.MAX_VALUE); // does... nothing?
primaryXAxis.setMajorGridStep(Double.MAX_VALUE); // removes only major tick marks
primaryXAxis.setTickLableSide(null); // moves the axis to the top of the diagram for some reason
此用例似乎没有method。
如何从轴上删除刻度线(或其标签)?