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
 clone temp long/short name in python not working?

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
craig_v Posted - 04/18/2023 : 11:33:04 AM
Hi All

Just wondering if anyone could help out with the renaming of a graph. I have created a clonable template that has built-in long and short names (the same as this https://my.originlab.com/forum/topic.asp?TOPIC_ID=46635 but clonable) and the names work when plotting manually but I'm using the API to automatically plot the graphs I need and when plotting using the API it doesn't work.

I'm using the following:
electron_transport = graph_template_folder + 'Electron_transport_Final.otpu'

wks.plot_cloneable(electron_transport)


c.venables
5   L A T E S T    R E P L I E S    (Newest First)
YimingChen Posted - 05/04/2023 : 2:58:21 PM
The bug you reported has been resolved in Origin 2023b. Please feel free to upgrade and test the latest version. Thank you.

James
craig_v Posted - 04/20/2023 : 11:15:12 AM
Excellent thankyou so much i will give this a try later.

c.venables
YimingChen Posted - 04/20/2023 : 10:43:59 AM
It appears currently the plot_cloneable() function can't preset the graph's short/long name. I have created jira ORG-26924 to fix the issue.

As a workaround, you may set the graph name manually with sample code:

gp = op.find_graph()
gp.lname = wks.lname
gp.name = wks.name


craig_v Posted - 04/20/2023 : 09:52:13 AM
Sorry i think i phrased this wrong, the long names dont change after plotting as they would when using the template normaly. See below






c.venables
YimingChen Posted - 04/20/2023 : 08:53:22 AM
Could you try removing .optu from the template name.


electron_transport = graph_template_folder + 'Electron_transport_Final'

wks.plot_cloneable(electron_transport)



James

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