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
 change the name of graph and worksheet
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ulhong84

11 Posts

Posted - 07/28/2022 :  03:52:21 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System: OriginPro2022 (9.9.0.220)

I made the 20 graphs named automatically Graph1, Graph2,...
How can I change the graph name in code builder?
For example, change the name from Graph1 to People1.

Additionally, when I make the graphs or worksheets by using the python code, how can I designate the name of each graph or worksheet?

please help~

minimax

351 Posts

Posted - 07/28/2022 :  04:22:27 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply

import originpro as op

#specify name on creation
gp=op.new_graph(lname='People1')

gp=op.find_graph('People1')
#modify the name
gp.name='NewPeople1'


https://www.originlab.com/python/doc/originpro/classoriginpro_1_1base_1_1_base_object.html#a7a0e00f0242fb07007820eba93a1300c
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