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 5,921 times
1 Answers
10
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.

jason
- 181
- 1
- 5
-
1Is there no way to do this in the stem function itself, or set the sizes globally? – tmldwn Dec 01 '22 at 09:37