How to reduce spaces before and after a CategoryPlot

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

How to reduce spaces before and after a CategoryPlot

Post by Lanto » Fri Jan 17, 2003 3:27 pm

Hi all,

I have a problem when I draw a CategoryPlot. In fact, I have always blank spaces before and after my graphic.
It appears like this

|
|
| x
| x x
| xxxxxxx
|_xxxxxxx__
^ ^
Here and here

How can I eliminate this ?
I've tried to put this
CategoryPlot plot = chart.getCategoryPlot();
plot.setIntroGapPercent(0.0);
plot.setTrailGapPercent(0.0);
But it has always no effect...

Thanks

Locked