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
 How to Set Circle as the Marker Symbol in My Plot

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
edu404 Posted - 08/26/2024 : 09:07:59 AM
Ver. 2024
System: Windows 10

Hello everyone,

I'm currently working on a script where I need to plot data with specific marker symbols. I want the markers in my graph to be circles, but I'm having trouble figuring out how to set this in my code. Below is the portion of the script that I'm using:

# Adding all columns from the worksheet to the graph, assuming the first column is X and others are Y
for col in range(1, wks.cols):
plot = gp[0].add_plot(wks, coly=col, colx=0, type=202) # colx=0 assumes the first column is X
plot.color = colors[col % len(colors)]
plot.set_int('symbol.size', 9)
plot.set_int('symbol.type', 3) # Attempt to set the symbol to a circle
plot.set_int('line.width', 5)
plot.set_int('lineStyle', 1)
plot.set_int('lineThickness', 5)
gp[0].rescale()

I’ve tried different values for symbol.type (such as 3, 0, 1, 2), but none of them seem to produce a circle as the marker. Could anyone provide guidance on how to correctly set the symbol to a circle? Am I missing something specific in the way I'm defining the marker?

Any help or pointers would be greatly appreciated!

Thanks in advance.

Best regards,
Edu



Edu
1   L A T E S T    R E P L I E S    (Newest First)
YimingChen Posted - 08/26/2024 : 12:04:00 PM
plot.set_int('symbol.kind', 2)


You may refer to this page:
https://www.originlab.com/doc/LabTalk/ref/Layer-Plotn-obj#Symbol

James

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