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
 Set columns as X/Y/Z & Add plot function
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

BulatM

4 Posts

Posted - 05/18/2022 :  6:11:26 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi everyone,

1. Tried to search originpro module for 'Set column as X/Y/Z' operation and found this:

def originpro.worksheet.WSheet.cols_axis()

But when using it in code nothing seems to change.

2. Additional question: when trying to use function

def originpro.graph.GLayer.add_plot()

the code crashes with such message on IDLE:

RESTART = C:/.../testing op.add_plot function.py
===== RESTART:Shell =====


Does anyone have solutions for these problems? Im using External Python

Thanks,
Bulat

cpyang

USA
1406 Posts

Posted - 05/18/2022 :  7:14:45 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
What is your Origin version?

CP
Go to Top of Page

BulatM

4 Posts

Posted - 05/19/2022 :  03:46:17 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Origin 2018

Bulat
Go to Top of Page

minimax

351 Posts

Posted - 05/19/2022 :  04:01:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi BulatM,

originpro package requires Origin 2021 or later.

Please try upgrading Origin.
https://www.originlab.com/2022b
Go to Top of Page

BulatM

4 Posts

Posted - 05/19/2022 :  07:46:00 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for the reply! I'll try exactly that

Bulat
Go to Top of Page

BulatM

4 Posts

Posted - 05/19/2022 :  09:22:13 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Upgraded to 2022b version, everything works now. Many thanks again, cpyang andd minimax, for helping out!

Bulat
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