combined plot height bug?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
TheBronx
Posts: 2
Joined: Tue Mar 26, 2013 11:27 am
antibot: No, of course not.

combined plot height bug?

Post by TheBronx » Tue Mar 26, 2013 11:48 am

I've posted this question also on SO: http://stackoverflow.com/questions/1563 ... -chart-bug

The problem is that I need to paint some rectangles over the subplots, and I need the width, height and coordinates of both subplots.
Image
It works but only when the screen resolution's height is under 800px or something like that. When the height grows over 800px, the height of the subplots stops growing (while the subplots in fact are growing!).

I've made a SSCCE to show the problem, basically the error comes from:

Code: Select all

chartPanel.getChartRenderingInfo().getPlotInfo().getSubplotInfo(0).getDataArea();
The area returned is not correct. Or I'm doing something wrong.

You can find the SSCCE on the first link (SO).

Locked