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 Python
 Setting Column Designation

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
Tare Posted - 06/13/2023 : 09:10:32 AM
Is there a way to set the column designations (e.g. the dependent and independent, x or y column designations) through external python code using originpro package?

For example I can set very easily the Units and Comments from lists named units, comments by:
#find the worksheet
wks=op.find_sheet()

#write the units down on the "Units" row
wks.set_labels(units, 'U')

#write the comments
wks.set_labels(comments, 'C')

Is there some way to set the columns as x or y by the python code?

Thanks for any replies.

Origin Ver. 2023b
1   L A T E S T    R E P L I E S    (Newest First)
YimingChen Posted - 06/13/2023 : 12:43:52 PM
Try
wks.cols_axis('XYXY')

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