当“范围边界”设置为“自动”时,androidplot不会绘制
我有一种方法,可以设置我的绘图,以绘制一些实时数据与时间的关系图当“范围边界”设置为“自动”时,androidplot不会绘制,android,androidplot,Android,Androidplot,我有一种方法,可以设置我的绘图,以绘制一些实时数据与时间的关系图 private static void setupPlot(XYPlot dsPlot, TimeBasedXYSeries series, int color) { dsPlot.setUserDomainOrigin(0); dsPlot.setUserRangeOrigin(0); dsPlot.setRangeBoundaries(0, 15, BoundaryMode.AUTO); d
private static void setupPlot(XYPlot dsPlot, TimeBasedXYSeries series, int color) {
dsPlot.setUserDomainOrigin(0);
dsPlot.setUserRangeOrigin(0);
dsPlot.setRangeBoundaries(0, 15, BoundaryMode.AUTO);
dsPlot.addSeries(series,
new LineAndPointFormatter(
color, null, null, null));
dsPlot.setDomainStep(XYStepMode.INCREMENT_BY_VAL, 10);
dsPlot.setTicksPerDomainLabel(5);
dsPlot.setDomainLabel("Time");
dsPlot.getDomainLabelWidget().pack();
dsPlot.setRangeStepValue(5);
dsPlot.setTicksPerRangeLabel(1);
dsPlot.setRangeValueFormat(new DecimalFormat("#"));
dsPlot.setDomainValueFormat(new TimeLineFormat());
dsPlot.setMarkupEnabled(true);
}
当我使用
dsPlot.setRangeBoundaries(0, 15, BoundaryMode.FIXED);
它的工作,但我不想使用固定的,因为我不知道的界限提前
BoundaryMode.AUTO
或BoundaryMode.GROW
似乎没有打印任何内容
关于如何根据数据自动调整范围边界,有什么想法吗
我使用的是androidplot 0.6.1,因为它似乎是最后一个有jar输出的版本。由于我的项目设置,我无法使用aar文件库 我看不出有什么明显的错误,但对于0.6.1这样的旧版本来说真的很难说。事实上,如果周围有人能够给出一个明确的答案,我会感到惊讶。我知道这不是你想要的答案,但是把androidplot的最新版本作为子模块(作为源代码)而不是jar或aar,怎么样?好的,谢谢Nick。我将尝试将androidplot作为最新源代码的子模块,看看会发生什么。我会回来报到的。