当我将默认字体更改为“Times New Roman”时,负数未正确显示。我想知道问题所在以及如何解决。我使用 plt.rcParams["font.family"] = "Times New Roman" 或者 plt.rc('font',family='Times New Roman')。下面分别是默认字体和新字体的图片。
- Shannon
3
看起来matplotlib没有使用减号,而是使用破折号(或类似的符号)。 - Willem Van Onsem
plt.rcParams['axes.unicode_minus'] 是什么? - Willem Van Onsem
plt.rcParams['axes.unicode_minus']
是什么? - Willem Van Onsem