prevent distortion of logarithmic axis

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

prevent distortion of logarithmic axis

Post by Clemens » Thu Jul 18, 2002 10:07 pm

Hi,

I want to prevent the horizontal logarithmic axis to be distorted. When I have both axises logarithmic, I want to see a straight line when I draw a function like y=1/x^2.
By default the horizontal axis behaves differently than the vertical. I wanted to change its behavior with something like
HorizontalLogarithmicAxis h = new HorizontalLogarithmicAxis(xAxis) {
protected void setupSmallLogFlag()
{
smallLogFlag = false;
}
};
but it didn't work out. Any ideas?

Clemens

David Gilbert

Re: prevent distortion of logarithmic axis

Post by David Gilbert » Mon Jul 22, 2002 12:39 pm

Hi Clemens,

I haven't had a chance to look into this yet. Another developer recently contributed some changes to allow negative values to be displayed (which isn't possible with a 'pure' log axis). I'd like to modify both the horizontal axis and the vertical axis to either work as 'pure' log axes, or in modified form to display negative values at the users option. And of course the horizontal and vertical axes should be consistent. It's on my to-do list...

Regards,

DG

Locked