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.
在下图中,我遵循此线程中描述的方法:Overlaying the numeric value of median/variance in boxplots
如何控制箱线图中的边界框或框的大小,以使文本不会溢出图形或与相邻的框碰撞?
您可以通过使用 figsize 参数调用 figure 来增加图形范围:
figure(figsize=(xsize,ysize))
您也可以通过使用 size 参数来减小字体大小(通常不理想):
text(x, y, '%.1f' % x, horizontalalignment='center', size=size)