Page 1 of 1

ColorGrid and IrregularGrid

Posted: Tue Jul 17, 2007 2:01 pm
by 9238997
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

Posted: Thu Jul 26, 2007 9:04 am
by yeray
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.