Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
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.