TColorGridSeries - Value[0,0]
Posted: Tue Dec 06, 2016 3:48 pm
I have a strange problem occuring with a TColorGridSeries. An error occurs when I reference Value[0,0] which claims there is 'no value at XZ:0 0' even though I have manually plotted at said point. If I start at 1 instead the error does not occur but I can't identify a consistent indexing system. Can you help understand this issue?
Code: Select all
Series8.Clear;
for x := 0 to 10 do
for z := 0 to 5 do
Series8.AddXYZ(x,x+z,z);
ShowMessage('Populated.');
for x:=1 to Series8.NumXValues do
begin
for z:=1 to Series8.NumZValues do
begin
//tmpGrid.AddXYZ((Series8.NumZValues-1)-z, Series8.YValue[(z*Series8.NumXValues)+x], x);
tmpGrid.AddXYZ(z, Series8.Value[x,z], x);
end;
end;