在 Matplotlib 中,我可以通过
ax.text(x_coord, y_coord, string, bbox = dict(boxstyle='round'), wrap = True, fontproperties = FontProperties_object)
我也可以通过设置字体类型matplotlib.font_manager.FontProperties
。
与 相比squarify
,它看起来很相似,因为正方形内有文字。我将如何设置字体并使用 进行文本换行squarify
?谢谢。