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 for Programming
 Forum for Python
 Setting Column Designation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Tare

Finland
1 Posts

Posted - 06/13/2023 :  09:10:32 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Edited by - Tare on 06/13/2023 09:11:30 AM

YimingChen

1618 Posts

Posted - 06/13/2023 :  12:43:52 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Try
wks.cols_axis('XYXY')
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