Removing empty space surrounding the plot?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Joel Norevik

Removing empty space surrounding the plot?

Post by Joel Norevik » Mon Feb 17, 2003 5:24 pm

Hi,

is it possible to remove all empty space that surrounds the plot?

When using a chart without title, legend and axis labels,
there is a wide empty space surrounding the plot,
although I have set the plot inset's to 0.

I would like the chart image to be just big enough for the plot.
Reducing the chart size itself only makes the plot smaller, not
the surrounding space.

I'm using version 0.9.5.

Thankful for any help.
/Joel

David Gilbert

Re: Removing empty space surrounding the plot?

Post by David Gilbert » Tue Feb 18, 2003 6:44 am

Hi Joel,

Setting the plot insets to zero is a good start. Also, make sure the chart title is null, and not "" (I've been meaning to fix that). If your axes are visible, there are insets around the axis labels that might be adding space.

If you post a small working sample program, I'll run it and see what else I can suggest.

Regards,

Dave Gilbert

Joel Norevik

Re: Removing empty space surrounding the plot?

Post by Joel Norevik » Tue Feb 18, 2003 10:11 am

Thanks Dave,

I set all titles and labels to null instead of "",
and I got rid of all white space, great!

Regards
Joel Norevik

Locked