amol wrote:
We used below way suggested by you for plotting contour. but in both way we are not able to understand what is significance of 46 and 47 in loop. Is it a fixed value(Static) and how can use it according to our new data (sent you yesterday).
Way 2 is the correct way, using x += 47. The number 47 comes from the size of the loop. In the original data:
Code: Select all
YArray = new double[] { 3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 , 3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3
as you can see, here there are 47 identical numbers, which is what defines 47. In your new data, you have:
Code: Select all
double[] YArray= new double[] { 61.779,61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,
61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,61.779 ,
61.779 ,61.779 ,61.779
36 identical numbers, meaning x += 36 and so on.
amol wrote:
why you are calculating y value.
In Way 2 we do not calculate the y value.
amol wrote:
one more thing we want to ask, is it necessary to use loop for plotting contour.
Yes, it is necessary, as the TeeChart code cannot automatically derive the loop sizes, that is, the numbers 47 and 36 and so on.