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