
Index
From: Mark Williamson
Subject: Re: Logarithmic scale
Date: Thu, 3 Mar 2005 10:46:58 -0000
Newsgroup: public.teechart5.activex
Hi
I have included a JPEG with the nearest tool on (only as a visual aid,
I have checked all values by hand). You can clearly see that values of
1 are being shown as 10^-1
I also include a JPEG of the same chart with the scale of left axis set to
linear - no other changes!
I await your response.
Thanks
Mark
"Mark Williamson" wrote in message
news:WcdNcm9HFHA.1800@TEEPC.Steema.local...
> Hi
>
> I am using the logarithmic scale and cannot workout why
> values of 1 are being shown as 10^-1 when they should be
> shown as 10^0.
>
> I format the axis as shown below
>
> CAxes axes = GetAxis();
> CAxis axis = axes.GetLeft();
> axis.SetLogarithmic(TRUE);
>
> CAxisLabels lbs = axis.GetLabels();;
> if (axis.GetLogarithmic()) {
> lbs.SetExponent(TRUE);
> lbs.SetValueFormat(_T("00e-0"));
> }
> else {
> lbs.SetExponent(FALSE);
> lbs.SetValueFormat(_T("0"));
> }
>
> It appears the scale is off by 10^1. This is only happening in the
> Logarithmic scale. I use the nearest tool to output the (x,y) values
> and there is definitely a change between the linear and
> logarithmic scales.
>
> Is there some setting I have missed?
>
> Thanks for any help
> Mark
>
>
>
File attachment Log_problem.JPG (65.1 KB)