MCVE:import matplotlib.pyplot as pltfrom matplotlib import rcplt.rc('text', usetex = True)plt.plot([1.0, 2.0], [3.0, 4.0])plt.show()抛出的错误如标题所述:RuntimeError: latex is not able to process the following string:b'$1.0$'Here is the full report generated by latex:<Figure size 432x288 with 1 Axes>由于usetex设置设置为 ,会引发错误True。如果设置为False,则不会发生错误。我不知道为什么会发生这种情况,我认为(不确定)相同的代码在几周前可以正常工作。添加更多信息:代码在一行指出错误:exc=exc.output.decode('utf-8')))
添加回答
举报
0/150
提交
取消