The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Default set up for the Colour Fill Contour Plot
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

superman1

UK
6 Posts

Posted - 11/07/2002 :  09:45:01 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

jiangwu

China
6 Posts

Posted - 04/18/2003 :  9:55:30 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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;
}
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000