Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试向 eplot 添加一个范围市场,但是每当标记值超过当前最大值时,它就不包含在图表中,因为图表似乎没有根据范围标记调整大小......有什么解决方法吗? 顺便说一句,我不知道数据集的当前最大值是多少。
为了知道数据集的当前最大值,您可以使用以下代码:-
ValueAxis valueAxis=cp.getRangeAxis(); // getting the value axis from plot Range r=cp.getDataRange(valueAxis); // getting the data range System.out.println(r.getUpperBound());
sysout 将返回数据集中的最大值。当您知道数据集中的最大值时,您可能可以获得所需的结果。