gpt4 book ai didi

java - Achartengine getRange 方法问题

转载 作者:行者123 更新时间:2023-12-01 14:45:23 26 4
gpt4 key购买 nike

我在使用 Achartengine 的 XYSeries getRange(double, double, int) 方法时遇到问题。

我是 Java 编程新手,所以这个问题让我有些困惑。

我不知道如何使用它,因为我尝试时总是出错!在它前面从 getRange 获取值的对象是什么?即:

此处为对象.getRange(double, double, int);

我也会将其设置为等于某个值吗?谢谢!

最佳答案

What is the object that goes in front of it to get values from getRange?

  XYSeries.getRange(double start, double stop, int beforeAfterPoints);

根据给定的开始和结束返回 x 和 y 值的子图

and would I set that equal to something too?

像这样使用它:

SortedMap<Double, Double> map = XYSeries.getRange(double start, double stop, int beforeAfterPoints);

获取 y 的 x 值

map.get(X_Value);

链接:

Class XYSeries

Viewing Sub Maps

希望这对您有帮助。

关于java - Achartengine getRange 方法问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15470166/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com