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:
Only the poster of this message, and the Moderator can edit the message.
Screensize:
640 x 480
800 x 600
1024 x 768
1280 x 1024
UserName:
Password:
Anti-Spam Code:
Format Mode:
Basic
Help
Prompt
Format:
Font
Andale Mono
Arial
Arial Black
Book Antiqua
Century Gothic
Comic Sans MS
Courier New
Georgia
Impact
Lucida Console
Script MT Bold
Stencil
Tahoma
Times New Roman
Trebuchet MS
Verdana
Size
1
2
3
4
5
6
Color
Black
Red
Yellow
Pink
Green
Orange
Purple
Blue
Beige
Brown
Teal
Navy
Maroon
LimeGreen
Forum:
Forum for Python
Subject:
Message:
* HTML is OFF
*
Forum Code
is ON
Smilies
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
Check here to subscribe to this topic.
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000