Home > Software engineering >  MFC Teechart5 contours of a problem (urgent urgent!!! )
MFC Teechart5 contours of a problem (urgent urgent!!! )

Time:09-23

The code is as follows:
Void CMy6Dlg: : OnBnClickedOk ()
{
//TODO: add the control notification handler code
CSeries my_series=(CSeries) chart. The Series (0);
CContourSeries my_contour=my_series. Get_asContour ();
for (int i=0; I & lt; 10; I++)
{

For (int j=0; J & lt; 10; J++)
{

Double val=I * j;
My_contour. AddXYZ (I, I * j, j, NULL, NULL);
}
}
}
After the running result is shown in figure:

Want to enlarge horizontal ordinate, then changed to my_contour AddXYZ (0.2 * I, I * j, 0.2 * j, NULL, NULL);
The results are as follows:

Why didn't the for points, the image details have sent so much for the great god help how to change ~ ~ ~ ~

CodePudding user response:

for (int i=0; I & lt; 10; I++)
{

For (int j=0; J & lt; 10; J++)

I j precision is not enough?
Try it, I +=0.1; J +=0.1

CodePudding user response:

https://www.baidu.com/s? Wd=Teechart + BB E6 B3 B9 E5 % % % % % % 91 & amp; Ie=utf-8

CodePudding user response:

There's no way I've tried

CodePudding user response:

There's no way I tried @ 2 floor

CodePudding user response:

Get_asContour (); There is a problem?

CodePudding user response:

Can you something about # 5

CodePudding user response:

Z axis Contour is, I think there is something wrong with the z axis data?
  • Related