Size of actual plot?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
joelwyland
Posts: 15
Joined: Wed Jun 02, 2004 10:26 pm

Size of actual plot?

Post by joelwyland » Fri Jul 09, 2004 6:04 pm

I'm trying to write code that will ensure item labels do not overlap, but I'm finding that the 2D space starts at the very edge of the whole chart including the scale and axis labels. Is there a way I can get the dimensions of just the plot area so that I can ensure my labels are visible within the plot?

Kenny

joelwyland
Posts: 15
Joined: Wed Jun 02, 2004 10:26 pm

Post by joelwyland » Fri Jul 09, 2004 6:40 pm

Found a solution...

The Graphics2D that is used for drawing the plot has its ClipBounds set to the actual size of the plot.

Locked