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
 How to plot the special-line(Y Error) in origin c?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

liujibao

China
Posts

Posted - 02/18/2004 :  10:25:40 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
How to plot the special-line(Y Error) in origin c?
Can you help me?
May you give me the sample codes?

Edited by - liujibao on 02/18/2004 10:30:27 AM

Iris_Bai

China
Posts

Posted - 02/18/2004 :  8:32:26 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Please make sure there is "Data1" worksheet window in current project.
 
void Try()
{
GraphPage gPage;
gPage.Create("Origin");

GraphLayer lay;
lay = gPage.Layers(0);


// a dataplot in the layer that uses Data1_Time as Y and Data1_Test1 as X
Curve cc("Data1_Time", "Data1_Test1");
int nPlotIndex = lay.AddPlot(cc, IDM_PLOT_SCATTER);
out_int("nPlotIndex = ", nPlotIndex);


// use the third column in the worksheet "Data1" for error bar:
Column colErrBar("Data1", 2);
nPlotIndex = lay.AddErrBar(cc, colErrBar);
out_int("nPlotIndex = ", nPlotIndex);

lay.Rescale();
}



Iris
Go to Top of Page

liujibao

China
Posts

Posted - 02/18/2004 :  8:48:44 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks a lot!
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