Page 1 of 1

TeeChart 2010 AddPolar Strangeness?

Posted: Tue Jul 12, 2011 10:20 pm
by 10545663
We "upgraded" to 2010 Pro and code that was working fine in version 8 now acts bizarrely. The code is straightforward C++ Builder 2010:
TIntArr Svids = SatData.Svids;
for ( unsigned int i=0; i<Svids.size(); ++i )
{
const int Svid = Svids;
const int Az = 360 - SatData.Az[Svid];
TColor SvColor = clBlue;
SatAzElSeries->AddPolar( Az, SatData.El[Svid], AnsiString( Svid ), SvColor );

I attached a screenshot to show what we are seeing. Again, version 8 works fine. What are we doing wrong?
Thanks,
Michael

Re: TeeChart 2010 AddPolar Strangeness?

Posted: Thu Jul 14, 2011 2:44 am
by 10545663
To give some more information, if I manually edit the data in the IDE, and just change the magnitude component, it almost looks like it is being scaled for a Smith chart or something. At the poles the locations are close to correct. But at the horizontal axis values they become drastically distorted.
Thanks, Michael

Re: TeeChart 2010 AddPolar Strangeness?

Posted: Thu Jul 14, 2011 7:39 am
by yeray
Hello Michael,

With the code snipped you've posted we can't know the exact data being used to create the chart and the picture doesn't clarify me how would you expect that data to be represented. I suspect that the problem could be with the axes min&max, similar to this discussion, but I'd need more details to be sure.
If after reading the mentioned thread you still have problems with it, please try to arrange a simple example project we can run as-is to reproduce the problem here.
Thanks in advance.