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);
}
}