AndroidPlot设置栅格间距

AndroidPlot设置栅格间距,android,androidplot,Android,Androidplot,我想知道如何使用更改栅格间距。我的网格目前有9行表示域,9行表示范围,我不知道这是从哪里来的 此外,如果您碰巧知道如何使图形线更粗一点,我们将不胜感激 这是最后两点,应该得到修复,我一直在寻找一段时间了 我几乎已经学会了如何“让其他一切看起来都很漂亮” 非常感谢您的帮助和时间。如何更改网格(两种可能的方法): 如何更改图形线的厚度: 您需要以这种方式更改正在使用的LineAndPointFormatter(使用LineAndPointFormatter的当前绘制初始化绘制是必要的,否则会出现非常

我想知道如何使用更改栅格间距。我的网格目前有9行表示域,9行表示范围,我不知道这是从哪里来的

此外,如果您碰巧知道如何使图形线更粗一点,我们将不胜感激

这是最后两点,应该得到修复,我一直在寻找一段时间了

我几乎已经学会了如何“让其他一切看起来都很漂亮”

非常感谢您的帮助和时间。

如何更改网格(两种可能的方法):

如何更改图形线的厚度: 您需要以这种方式更改正在使用的LineAndPointFormatter(使用LineAndPointFormatter的当前绘制初始化绘制是必要的,否则会出现非常奇怪的行为):


是的,这正是问题所在。。。androidPlot网站已经关闭一个多月了!这就是为什么我在这里问:)
plot.setRangeStep(XYStepMode.INCREMENT_BY_VAL, 125);
plot.setDomainStep(XYStepMode.SUBDIVIDE, 16);
LineAndPointFormatter lineAndPointFormatter = new LineAndPointFormatter(
        Color.rgb(0, 0, 0), null, null);

//change the line width
Paint paint = lineAndPointFormatter.getLinePaint();
paint.setStrokeWidth(3);
lineAndPointFormatter.setLinePaint(paint);

// create a series using a temporary formatter, with a transparent fill
// applied immediately
xyPlot.addSeries(currentConsumptionSeries, lineAndPointFormatter);