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
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 How to plot the special-line(Y Error) in origin c?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
liujibao Posted - 02/18/2004 : 10:25:40 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
liujibao Posted - 02/18/2004 : 8:48:44 PM
Thanks a lot!
Iris_Bai Posted - 02/18/2004 : 8:32:26 PM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000