| Author |
Topic  |
|
|
superman1
UK
6 Posts |
Posted - 11/07/2002 : 09:45:01 AM
|
Hello,
I have some how, I think by using "LT_execute" command, caused the default settings for the Colour Fill Contour Plot to be changed/erased. Now when using this plot the colour fill does not happen. Also when toggling it on, in the "Plot Details" window, the colour scheme has be changed from the previous preset one.
Can anyone help?
regards Andrew |
|
|
Laurie
USA
404 Posts |
Posted - 12/04/2002 : 11:56:01 AM
|
When you plot a contour plot, you have 3 choices: contour-color fill, contour-b/w lines+labels, and gray scale map. Each of these is based on its own graph template: contour.otp, contline.otp, and contgray.otp.
Without knowing more, my guess is that maybe you're now using the contline.otp file which would create just a black and white contour line plus labels plot.
OriginLab Technical Support |
 |
|
|
jiangwu
China
6 Posts |
Posted - 04/18/2003 : 9:55:30 PM
|
I writed a function to generate a matrix and display a contour plot.I also ploted a contour plot using Origin Plot/Contour plot/contour-color fill directly from the matrix.But the two plot are quite different.Why?Should I change some Origin options or is there something wrong with my program?
void MatrixContour() { //copy from Origin C Help //fill a matrix MatrixPage mat1; mat1.Create("origin"); mat1.Rename("myMatrix"); Matrix <double> aa; BOOL bRet = aa.Attach("myMatrix"); UINT rows = aa.GetNumRows(); UINT cols = aa.GetNumCols(); printf("rows = %d\t cols = %d\n", rows, cols); for (int ii = 0; ii<rows; ii++) for (int jj = 0; jj<cols; jj++) { aa[ii][jj]= sin (ii) + cos (jj); } //plot a contour plot GraphPage grph; string strTemp = "contour.otp"; BOOL bOK = grph.Create(strTemp, CREATE_VISIBLE); GraphLayer grlay = grph.Layers(0); //layer 1 ASSERT(grlay.IsValid()); Curve cv("myMatrix"); // get Curve object ASSERT(cv.IsValid()); bOK = 0 <= grlay.AddPlot(cv); // add data plot if (!bOK) return; } |
 |
|
| |
Topic  |
|
|
|