How to Set Minimum Range for Vertical Axis

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

How to Set Minimum Range for Vertical Axis

Post by Aloke Agarwal » Thu Feb 07, 2002 7:34 pm

Hi,

I am using Scatter Plot to plot percentage in y against numbers in x. The percentage typically start from 50% onwards. However the Y axis always start from 0% to Data Maximum.

I want it to have axis range from Data Min. to Data. Maximum.
I have tried setting setAutoRangeIncludesZero(false) but it does not work.

Any suggestions.

Thanks

David Gilbert

Re: How to Set Minimum Range for Vertical Axis

Post by David Gilbert » Fri Feb 08, 2002 4:11 pm

Hi Aloke,

setAutoRangeIncludesZero(false) on the y axis should work, so something must be going wrong. If you can post a small piece of code that creates a sample XYDataset that exhibits the problem, I'll take a look...

Regards,

DG.

Locked