Change font width in matplotlib

后端 未结 1 1860
不知归路
不知归路 2021-01-21 19:20

I trying to use plt.text to plot letters that are variously stretched or squeezed in the horizontal direction. I thought the \'stretch\' option would do that, but it doesn\'t ch

相关标签:
1条回答
  • 2021-01-21 20:03

    I tried specifying the stretch using mpl.rcParams['font.stretch'] = 1000 but as per the official docs, it seems font.stretch is not yet implemented (emphasis mine):

    The font.stretch property has 11 values: ultra-condensed, extra-condensed, condensed, semi-condensed, normal, semi-expanded, expanded, extra-expanded, ultra-expanded, wider, and narrower. This property is not currently implemented.

    0 讨论(0)
提交回复
热议问题