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
 Anti-Aliasing enable
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

missmoneypenny

Austria
2 Posts

Posted - 08/03/2023 :  05:04:48 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,

I created new graph, new plot in python, but I would like activate the Anti-Aliasing Button (from origin) in python. How can I do that?
Thanks.

.....
graph = op.new_graph()
graph.name = book.lname
gl = graph[0]
# plot whole sheet as XY plot
plot = gl.add_plot(worksheet_origin,1,2) #Y, X

# scales = {'linear': 1, 'log10': 2, 'probability': 3, 'probit': 4, 'reciprocal': 5,'offset_reciprocal': 6, 'logit': 7, 'ln': 8, 'log2': 9}
gl.yscale = 2
gl.xscale = 1

.........

YimingChen

1643 Posts

Posted - 08/03/2023 :  09:07:30 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply

graph.set_int('AA',1) ## Turn on the Anti-Aliasing of the Graph.
Go to Top of Page

missmoneypenny

Austria
2 Posts

Posted - 08/03/2023 :  09:38:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by YimingChen


graph.set_int('AA',1) ## Turn on the Anti-Aliasing of the Graph.




Thank you so much! One more question, is there any documentation to this?
Go to Top of Page

YimingChen

1643 Posts

Posted - 08/03/2023 :  12:00:47 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You may check the following two pages:
1. Python set_int() method to set object's LabTalk int property:
https://docs.originlab.com/originpro/classoriginpro_1_1base_1_1BaseObject.html#a4a948cd0bcc77a77ad3b338e478db68e

2. The LabTalk Page (graph) property Anti-Aliasing:
https://www.originlab.com/doc/en/LabTalk/ref/Page-obj

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