I found a strange behaviour of the method findSubplot(info, point), or maybe more precise in the Method info.getPlotArea().
It seems like the maximum (internal) height of the plot area is 735.5390625. Although in fact it is larger. This leads to the fact that findSubplot(info, point) does not return the correct subplot when the point lies in the lower part of the subplot.
I'm not very familiar with the coordinates that JFreeChart uses to determine the plot area but I give here some numbers which might be useful for solving this miracle:
(points are coming from MouseDown)
Code: Select all
plot area: java.awt.geom.Rectangle2D$Double[x=8.0,y=28.4609375,w=647.0,h=735.5390625]
point: java.awt.Point[x=129,y=729] -> still can find the subplot
point: java.awt.Point[x=125,y=730] -> does not find the suplot anymore
point: java.awt.Point[x= 63,y=768] -> lower left corner of the subplot (+/-3 pixel)
Thanks for your help!
Julia