Striped surface plot
Posted: Tue Oct 09, 2007 10:16 pm
Hi there,
I create a TSurfaceSeries and fill the data in with the following code:
The result is the following chart:
If I replace the y_vec[j] simply with j I get a full surface. The vector y_vec[j] is large enough and contains data from 0.5 to 119.5.
What could be the reason for this strange behavior?
Andreas
I create a TSurfaceSeries and fill the data in with the following code:
Code: Select all
// loop over all time points
for (unsigned int i=0; i < z_matrix.size(); ++i) {
// loop over all coordinates
for (unsigned int j = 0; j<y_vec.size(); ++j) {
series3D->AddXYZ(x_vec[i], z_matrix[i].m_data[j], y_vec[j]);
}
}
If I replace the y_vec[j] simply with j I get a full surface. The vector y_vec[j] is large enough and contains data from 0.5 to 119.5.
What could be the reason for this strange behavior?
Andreas