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
 change the name of graph and worksheet

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
ulhong84 Posted - 07/28/2022 : 03:52:21 AM
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~
1   L A T E S T    R E P L I E S    (Newest First)
minimax Posted - 07/28/2022 : 04:22:27 AM

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

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