Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
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!