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
 How to Set Circle as the Marker Symbol in My Plot
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

edu404

Brazil
6 Posts

Posted - 08/26/2024 :  09:07:59 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

YimingChen

1606 Posts

Posted - 08/26/2024 :  12:04:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
plot.set_int('symbol.kind', 2)


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

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