ColorGrid and IrregularGrid

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Gareth
Newbie
Newbie
Posts: 6
Joined: Thu Oct 27, 2005 4:00 am
Location: UK

ColorGrid and IrregularGrid

Post by Gareth » Tue Jul 17, 2007 2:01 pm

Hi,

I have been using a ColorGrid for some time and have now noticed a problem when using it with IrregularGrid = true. It seems lose the
last lot of data.

Using the code below, if the ColorGrid's IrregularGrid = false, then
plot will show a 4x4 grid of data with an x axis range from 0 to 4 and a
z axis range from 0 to 4. As expected.

If the IrregularGrid is set to true, then the plot will show a 3x3 grid of
data with a x axis range from 0 to 3 and a z axis range from 0 to 3.

I am using C++Builder 2006 and TeeChart Pro v7.07

Code: Select all

randomize();

double Array[4][4];
for(int i=0;i<4;i++)
{
    for(int j=0;j<4;j++)
    {
         Array[i][j] = rand();
    }
}

// plot data
Series->IrregularGrid = false;

for(int i=0;i<4;i++)
{
    for(int j=0;j<4;j++)
    {
         Series1->AddXYZ(i,Array[i][j],j);
    }
}
Thanks Gareth

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Thu Jul 26, 2007 9:04 am

Hi Gareth,

We made some test and we think it works as it should. Take a look at this thread where is explained how colorgrid works with irregulargrid.

Note that you'll have a value for each intersection point, not for each square.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply