Question on Contour series
Posted: Thu Apr 21, 2011 3:00 pm
Hello,
I would like to use a contour serie in my software, using the filled levels property, but I'm not sure it's possible.
Is it possible to use this serie with uneven data ? What I mean is my Xdata does not increase one by one for example :
m_ContourData.IrregularGrid = true;
m_ContourData.FillLevels = true;
Random rand = new Random();
rand.Next();
for(int i=0;i<36;i++)
{
for(int j = 0; j<32; j++)
{
UpdateData(i, j, rand.Next(-80, -70));
}
}
m_ContourData.YValues.RemoveAt(0);
m_ContourData.NumLevels = 7;
works fine
m_ContourData.IrregularGrid = true;
m_ContourData.FillLevels = true;
Random rand = new Random();
rand.Next();
for(int i=0;i<36;i+=2)
{
for(int j = 0; j<32; j+=2)
{
UpdateData(i, j, rand.Next(-80, -70));
}
}
m_ContourData.YValues.RemoveAt(0);
m_ContourData.NumLevels = 7;
displays the contour, but does not fill the levels . (the difference is about the i and j incrementation).
In reality I will have a 360 X axis, a 110 Z axis and will add some values, with an increment of 10 for the X axis and 5 for the Y axis for example.
Is it possible to fill those levels for this kind of data, and if yes how ?
Kind Regards
I would like to use a contour serie in my software, using the filled levels property, but I'm not sure it's possible.
Is it possible to use this serie with uneven data ? What I mean is my Xdata does not increase one by one for example :
m_ContourData.IrregularGrid = true;
m_ContourData.FillLevels = true;
Random rand = new Random();
rand.Next();
for(int i=0;i<36;i++)
{
for(int j = 0; j<32; j++)
{
UpdateData(i, j, rand.Next(-80, -70));
}
}
m_ContourData.YValues.RemoveAt(0);
m_ContourData.NumLevels = 7;
works fine
m_ContourData.IrregularGrid = true;
m_ContourData.FillLevels = true;
Random rand = new Random();
rand.Next();
for(int i=0;i<36;i+=2)
{
for(int j = 0; j<32; j+=2)
{
UpdateData(i, j, rand.Next(-80, -70));
}
}
m_ContourData.YValues.RemoveAt(0);
m_ContourData.NumLevels = 7;
displays the contour, but does not fill the levels . (the difference is about the i and j incrementation).
In reality I will have a 360 X axis, a 110 Z axis and will add some values, with an increment of 10 for the X axis and 5 for the Y axis for example.
Is it possible to fill those levels for this kind of data, and if yes how ?
Kind Regards