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
 Origin Forum
 how can i auto skip empt data column
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

dddang

12 Posts

Posted - 12/15/2016 :  04:15:49 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Is there any way to auto skip empty data column when plotting a bar/column graph?

Hideo Fujii

USA
1582 Posts

Posted - 12/15/2016 :  3:23:55 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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