开发者

JFreechart get grid display dimension

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜