This patch add defaultLowerBound/defaultUpperBound, so as to be able to control the default lower and upper bounds of an autorange axis.
It doesn't look nice when autorange axis jumps to [0,1] when a chart is cleared if all the plots that is drawn on it normally has a completely different range.
I have kept the original DOS encoding(carriagereturn/newline) in the patch - maybe a dos2unix run on the source is due? :-)
Configurable ValueAxis DEFAULT_LOWER/UPPER_BOUND patch
Logged In: YES
user_id=112975
Originator: NO
Thanks. The surprising thing is that this hasn't been done before now. I should get this in for 1.0.4. One thing you missed is updating the equals() method, and I'm also going to have a short think about whether the default range should be specified as a single range or two bounds (it probably doesn't matter that much).
Logged In: YES
user_id=112975
Originator: NO
I just committed a patch to CVS. In the end, I decided to use a single defaultAutoRange object (instance of Range) rather than a separate upper and lower bound. This will be included in the 1.0.5 release.