ColorGrid locations
Posted: Tue Jul 28, 2009 6:49 am
Hi,
I'm one of those waiting for an alignment fix (?) that made some properties 'NULL' for TColorGridSeries. That aside, trying to use it regardless, I'm trying to plot some data and it is behaving strangely. It seems like the colour grid minimum value is being offset by 1. So, for the code slice below:
Produces a grid with borders 1 to 10(rather than 0 to 10), the bottom-left being 1,1, and the top-right being 10,10. What this means is, for starters, the coloured boxes no longer represent a 1 by 1 cell, as it is trying to fit 10 by 10 cells into a 9 by 9 space. This is made more obvious when the 'frame' is visible, which outlines the grid as if it were plotting cells of the correct size, which means the frame does not match the coloured grid. This all seems very broken. Attached is an example screen capture.
Is this a known problem? Am I doing something wrong?
I'm one of those waiting for an alignment fix (?) that made some properties 'NULL' for TColorGridSeries. That aside, trying to use it regardless, I'm trying to plot some data and it is behaving strangely. It seems like the colour grid minimum value is being offset by 1. So, for the code slice below:
Code: Select all
m_pColourGrid->CenteredPoints = false;
m_pColourGrid->IrregularGrid = false;
for(int i = 0; i < 10; i++)
{
for(int j = 0; j < 10; j++)
{
m_pColourGrid->AddXYZ(i,i * j,j);
}
}
Is this a known problem? Am I doing something wrong?