简体   繁体   English

如何控制 matplotlib 中的词干标记大小?

[英]How to control stem markers size in matplotlib?

In How to make thicker stem lines in matplolib there is a description of how to control the width of stem lines.如何在 matplolib 中制作更粗的主干线中有描述如何控制主干线的宽度。 But how to control the size of the stem markers?但是如何控制词干标记的大小呢?

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.虽然前两个代码行取自我问题中的链接,但第三个代码行更改了标记的大小。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM