tar*_*aki 4 android androidplot
我想知道如何使用AndroidPlot更改网格间距.我的网格目前有9条域用于域,9条用于范围,我不知道它来自何处.
此外,如果你碰巧知道如何使图形线更厚一点,将非常感激.
这是应该修复的最后两点,我现在已经搜索了一段时间.
我几乎已经发现如何"让其他一切看起来很漂亮".
非常感谢你的帮助和时间.
如何更改GRID(两种可能的方式):
plot.setRangeStep(XYStepMode.INCREMENT_BY_VAL, 125);
plot.setDomainStep(XYStepMode.SUBDIVIDE, 16);
Run Code Online (Sandbox Code Playgroud)
如何更改图形线的粗细:您需要以这种方式更改正在使用的LineAndPointFormatter(使用当前的PaintAndPointFormatter初始化Paint是必不可少的,否则会出现非常奇怪的行为):
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);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1959 次 |
| 最近记录: |