In How to make thicker stem lines in matplolib there is a description of how to control the width of stem lines. But how to control the size of the stem markers?
Asked
Active
Viewed 1,872 times
1 Answers
4
markerline, stemline, baseline, = ax.stem(x,y,linefmt='k-',markerfmt='ko',basefmt='k.')
plt.setp(stemline, linewidth = 1.25)
plt.setp(markerline, markersize = 5)
While the first two code lines are taken from the link in my question, the third code line changes the marker's size.
![](../../users/profiles/12273846.webp)
jason
- 71
- 4