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
 Check if Dataset is an error bar

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
johannes.kastl Posted - 04/23/2013 : 03:10:32 AM
Hi everyone,

I am looking for a way to modify just the error bars of my graphs. I can use 'doc -e DY' to get just the non-error datasets.

I can modify the marker width of the error bars via set command. And on bar charts I can change the symbol size of all plots (doc -e D {set %C -z 5}), as this has no effect on bars or columns. But how about graphs using symbols?

How to differentiate between datasets for the symbols and datasets for the error bars?

Ugly workaround:
First using 'doc -e D' to change the error bars, then using 'doc -e DY' to repair the damage done to the symbols.

Thanks in advance.

Kind Regards,
Johannes

Origin Ver. and Service Release (Select Help-->About Origin): 8.6.0G SR3, Operating System: Win XP SP3
2   L A T E S T    R E P L I E S    (Newest First)
johannes.kastl Posted - 05/16/2013 : 08:39:54 AM
Hi Greg,

sorry for the delayed answer, but that does work, but not as I hoped it would.

All Plots:
>>doc -e D {%C=;}
Book1_B
Book1_D
Book1_F
Book1_H
Book1_J
Book1_C
Book1_E
Book1_G
Book1_I
Book1_K


Without the error bars:
>>doc -e DY {%C=;}
Book1_B
Book1_D
Book1_F
Book1_H
Book1_J


So B/D/F/H/J should be normal plots.

But:
>>doc -e D {
range rap = %C;
if(rap.type==3)
{
ty %C is an Error Bar;
}
else
{
ty %C is a Y plot;
}
}
Book1_B is a Y plot
Book1_D is an Error Bar
Book1_F is an Error Bar
Book1_H is an Error Bar
Book1_J is an Error Bar
Book1_C is an Error Bar
Book1_E is an Error Bar
Book1_G is an Error Bar
Book1_I is an Error Bar
Book1_K is an Error Bar
>>


The reason for this behaviour is that the columns were set as Y error, not as Y. This is an old file, so I have no clue why this is so. But this far there have been no side effects, until now...

I was hoping that Origin would recognize that the column was selected as an error bar in the plot setup, rather than taking the column setting.

But at least I have one way to solve the issue. Not nice, but ok.

Thanks for your answer!

Regards,
Johannes
greg Posted - 05/03/2013 : 4:52:35 PM
doc -e D {
range rap = %C;
if(rap.type==3)
{
ty %C is an Error Bar;
}
else
{
ty %C is a Y plot;
}
}

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