Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在如何在 matplolib 中制作更粗的主干线中有描述如何控制主干线的宽度。但是如何控制词干标记的大小呢?
markerline, stemline, baseline, = ax.stem(x,y,linefmt='k-',markerfmt='ko',basefmt='k.') plt.setp(stemline, linewidth = 1.25) plt.setp(markerline, markersize = 5)
虽然前两个代码行取自我问题中的链接,但第三个代码行更改了标记的大小。