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
 How to add plots to left or right axis in Double-Y
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

iniwoni

5 Posts

Posted - 06/02/2025 :  06:38:40 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2025 10.2.0.188
Operating System: Win10

Hi!

There a layer which has Double Y at left and right axis in the same layer. How can I add plots to left or right axis? Maybe..

layer.lt_exec(...)
or
layer.set_int(...)
or
layer.set_str(...)
or
layer.set_float(...)


ChaoC

USA
190 Posts

Posted - 06/06/2025 :  10:28:08 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

You can use set_cmd() to set a plot on right Y.

Example.

import originpro as op
g1=op.find_graph('Graph1')[0]
p=g1.plot_list()[1]
p.set_cmd("-ay 2")
#this will set the 2nd plot in Graph 1 to the right Y.

See:
https://docs.originlab.com/originpro/classoriginpro_1_1graph_1_1Plot.html#aae1d79780d938019ae6bb3f7377ebf2f
https://www.originlab.com/doc/Labtalk/Ref/Set-cmd#Option_for_Data_Plots

Best,
Chao
Go to Top of Page

iniwoni

5 Posts

Posted - 06/09/2025 :  2:54:52 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you, Chao
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