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
 Origin Forum
 how can i auto skip empt data column

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
dddang Posted - 12/15/2016 : 04:15:49 AM
Is there any way to auto skip empty data column when plotting a bar/column graph?
1   L A T E S T    R E P L I E S    (Newest First)
Hideo Fujii Posted - 12/15/2016 : 3:23:55 PM
Hi dddang,

If your X columns contain text, even when your Y data is missing, bars are arranged at the row indices: 1,2,... .
So, you have to extract data not to include missing values in the Y column by Worksheet Query tool (under Worksheet menu).
When your Y column is B, you can enter COL(B)!=0/0 in the Condition box. (0/0 means a missing value.)

(Or, you can enter the following x-function in the Script window:
wextract -r 1 settings.stCondition.Condition:="COL(B)!=0/0" settings.Cols:="0|1" oy:=[%H]<new>;
Here, the option "-r 1" sets the recalculation mode to Auto, and "Cols" are extracted columns - the column# starts from 0, not 1.)

You can make a column graph from the extracted worksheet.

Hope this helps.

--Hideo Fujii
OriginLab

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