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
 LabTalk Forum
 scripts, y error bars

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
bjanu Posted - 02/17/2012 : 4:28:04 PM
Origin Ver. and Service Release (Select Help-->About Origin):
Operating Syste
Hello i am new to origin and encountered this problem - i am trying to write a simple scipt that includes creating a graph and showing y errors. Tutorials say that plotxy iy:=(1,2,3); col(3) is supposed to be considered as error bar however it is ignored in my case. i also tried wks.col.type.4 this way i could get the collum to become error bar but it become only -+ while i needed it to become only positive or only negative, and still grap does't show anything but first 2 collums. So to put it simple could anyone tell me the best way to create y error markings on a graph using script.m:
5   L A T E S T    R E P L I E S    (Newest First)
bjanu Posted - 02/23/2012 : 4:50:19 PM
Thank you that was my mistake i used older version of origin and thus it was not working.
Penn Posted - 02/20/2012 : 01:22:34 AM
Hi,

Please note that the function of plotting Y-Error for plotxy is available since Origin 8.5.1. So, please make sure that you are using Origin 8.5.1 or higher version.

If there are more than one layers in the graph template, you can firstly create the graph using this template, and then add the plot to the specified layer. For example:

range r1 = col(1);  // column 1
range r2 = col(2);  // column 2
range r3 = col(3);  // column 3
win -t p MyTemplate;  // create a graph window using the template
plotxy iy:=(r1, r2, r3) ogl:=2;  // plot XYError to the second layer


Penn
bjanu Posted - 02/18/2012 : 05:37:42 AM
well i tried to use my new saved templete where everything works, however the problem still occurs - graph doent display the y error bars, i noticed that my hand made template has 3 layers in the graph and the one generated by the script hasa only 1, so maybe template can not save all the layers and they properties at once?
Drbobshepherd Posted - 02/17/2012 : 5:16:42 PM
Oh! After you get your plot the way you want it, save it as a template (e.g. named MyScatterPlot) so you can call it in your script with:

plotxy iy:=(1,2,3) ogl:=[<new template:=MyScatterPlot>];

Hope this helps.

DrBobShepherd
Drbobshepherd Posted - 02/17/2012 : 5:09:52 PM
The plotxy X-function is probably ignoring the 3rd column because it is the wrong type. Try:

wks.col3.type=3; // Set col 3 to type Y-error
plotxy iy:=(1,2,3); Plot Scatter plot with y-error bars

Then double-click on one of the error-bars to open the Properties window and uncheck the + or - box in the Direction section.

DrBobShepherd

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