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
 graph.rescale(), more input parameters
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

niaji

China
5 Posts

Posted - 10/12/2022 :  1:01:50 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 2021
Operating System:WIN11
Hi, I am trying to use python to produce a graphe from sheet, but it seems that the scale of the axis is determined automatically.
I think the graphe.rescale(self, skip: str = 'axis to skip') function would be more perfect if we can set the range mannually since some data may have a limit such as the efficiency which will never exceeds 100%. Hopefully you can consider this suggestion

YimingChen

1618 Posts

Posted - 10/12/2022 :  1:59:40 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can use the set_xlim() function. For example:
gl.set_xlim(0,1)

https://docs.originlab.com/originpro/classoriginpro_1_1graph_1_1GLayer.html#ade5e9d47cf32ffa00ac59728605ea04e

James

Edited by - YimingChen on 10/12/2022 2:20:28 PM
Go to Top of Page

niaji

China
5 Posts

Posted - 10/13/2022 :  08:38:49 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by YimingChen

You can use the set_xlim() function. For example:
gl.set_xlim(0,1)

https://docs.originlab.com/originpro/classoriginpro_1_1graph_1_1GLayer.html#ade5e9d47cf32ffa00ac59728605ea04e

James



Thx, james
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