VerticalLogarithmicAxis problem

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

VerticalLogarithmicAxis problem

Post by josh » Tue Sep 03, 2002 3:01 pm

Anyone use VerticalLogarithmicAxis lately? For some reason I was not getting the correct value in the translateJava2DtoValue method.

The return for a non-inverted axis is:
axisMax - Math.pow(10, ((java2DValue-plotY)/(plotMaxY-plotY))*(axisMax - axisMin));

I changed it to:
Math.pow(10,axisMax - (java2DValue-plotY)/(plotMaxY-plotY)*(axisMax-axisMin));

Is this something funky with my chart or is the 2nd way the right way?

David Gilbert

Re: VerticalLogarithmicAxis problem

Post by David Gilbert » Tue Sep 03, 2002 3:56 pm

Hi Josh,

I haven't used the log axes myself, but they have been updated for 0.9.3 which I just released on SourceForge. Try the new release and see if it is any better.

Regards,

DG.

Locked