Levels in contour plots
Posted: Wed Jan 14, 2009 11:07 am
Hello,
I'm a little confused: in th following code segment (C++)
Serie1.FillSampleValues(20);
Serie1.GetAsContour().SetAutomaticLevels(true);
Serie1.GetAsContour().SetNumLevels(15);
long lNumLevels=Serie1.GetAsContour().GetNumLevels();
//
Serie1.GetAsContour().SetAutomaticLevels(false);
Serie1.GetAsContour().SetNumLevels(15);
lNumLevels=Serie1.GetAsContour().GetNumLevels();
"serie1" is a contour serie. I try to get the Number of contour levels. In the first case (SetAutomaticLevels(true) ) the function GetNumLevels() returns the correct value 15.
In the second case (SetAutomaticLevels(false)) the function GetNumLevels() returns 0.
What happens here, what I'm doing wrong?
Raimund
I'm a little confused: in th following code segment (C++)
Serie1.FillSampleValues(20);
Serie1.GetAsContour().SetAutomaticLevels(true);
Serie1.GetAsContour().SetNumLevels(15);
long lNumLevels=Serie1.GetAsContour().GetNumLevels();
//
Serie1.GetAsContour().SetAutomaticLevels(false);
Serie1.GetAsContour().SetNumLevels(15);
lNumLevels=Serie1.GetAsContour().GetNumLevels();
"serie1" is a contour serie. I try to get the Number of contour levels. In the first case (SetAutomaticLevels(true) ) the function GetNumLevels() returns the correct value 15.
In the second case (SetAutomaticLevels(false)) the function GetNumLevels() returns 0.
What happens here, what I'm doing wrong?
Raimund