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
 Anti-Aliasing enable

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
missmoneypenny Posted - 08/03/2023 : 05:04:48 AM
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

.........
3   L A T E S T    R E P L I E S    (Newest First)
YimingChen Posted - 08/03/2023 : 12:00:47 PM
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
missmoneypenny Posted - 08/03/2023 : 09:38:09 AM
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?
YimingChen Posted - 08/03/2023 : 09:07:30 AM

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

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