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
 How to add plots to left or right axis in Double-Y

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
iniwoni Posted - 06/02/2025 : 06:38:40 AM
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(...)


2   L A T E S T    R E P L I E S    (Newest First)
iniwoni Posted - 06/09/2025 : 2:54:52 PM
Thank you, Chao
ChaoC Posted - 06/06/2025 : 10:28:08 AM
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

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