开发者

JFreechart get grid display dimension

开发者 https://www.devze.com 2023-03-19 18:48 出处:网络
How can I get the DISPLAY dimensions of my grid squares in an XY plot. I can get the tick unit, but becau开发者_如何学Cse the plot axis is adjusted to fit the dataset, equal tick units on both axis do

How can I get the DISPLAY dimensions of my grid squares in an XY plot. I can get the tick unit, but becau开发者_如何学Cse the plot axis is adjusted to fit the dataset, equal tick units on both axis do not always look equal, maybe because one of the axis have a larger range of values. Is there any way to get the displayed dimensions of the grids, and not the tick unit. Thanks


You might be able to infer something useful from getBounds() on the ChartPanel and getInsets() on the Plot. Alternatively, specify a square container and setResizable(false).

0

精彩评论

暂无评论...
验证码 换一张
取 消