我正在使用Androidplot (v0.5.0),我希望我绘制的系列的片段有不同的颜色。我想我需要使用RectRegion,但是这个区域从来没有出现过。
XYSeries series = new SimpleXYSeries(timestamps, item.getValues(), "");
LineAndPointFormatter seriesFmt = new LineAndPointFormatter(
Color.rgb(0, 200, 0),
Color.rgb(0, 100, 0),
Color.rgb(150, 190, 150));
XYRegionFormatter regionFmter = new XYRegionFormatter(Color.RED);
RectRegion region = new RectRegion(0, 10, 0, 10);
seriesFmt.addRegion(region, regionFmter);我再也找不到这方面的文档了,但我可以从我试图实现的旧教程中找到旧图像。http://androidplot.com/w/images/thumb/1/12/RectRegions_final.jpg/398px-RectRegions_final.jpg

发布于 2012-08-11 15:03:23
这里有一个链接,指向生成您发布的图形的完整源代码-希望它能提供您正在寻找的答案:)
https://stackoverflow.com/questions/11912666
复制相似问题