Lazarus

Programming => Graphics and Multimedia => TAChart => Topic started by: hakelm on February 01, 2015, 03:51:10 pm

Title: Logarithmic surprise
Post by: hakelm on February 01, 2015, 03:51:10 pm
Trying to create a  log-lin tagraph I was in for a surprise, see the attached image. Using TChartAxisTransformations with a TLogarithmAxisTransform for the bottom axis the resulting graph looks the same as the one without any transformation. The bottom axis is, however, transformed showing labels which are the x-values raised to the 10th power.
Where am I wrong?
H
Title: Re: Logarithmic surprise
Post by: balazsszekely on February 01, 2015, 04:14:03 pm
http://wiki.lazarus.freepascal.org/TAChart_Tutorial:_ListChartSource,_Logarithmic_Axis,_Fitting#Setting_up_a_logarithmic_axis
Title: Re: Logarithmic surprise
Post by: hakelm on February 01, 2015, 04:23:07 pm
Thanks!
I had missed the AxisIndexX property. Setting it to '1 Bottom' did the trick.
H
TinyPortal © 2005-2018