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()拋出的錯誤如標(biāo)題所述: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設(shè)置設(shè)置為 ,會引發(fā)錯誤True。如果設(shè)置為False,則不會發(fā)生錯誤。我不知道為什么會發(fā)生這種情況,我認(rèn)為(不確定)相同的代碼在幾周前可以正常工作。添加更多信息:代碼在一行指出錯誤:exc=exc.output.decode('utf-8')))
添加回答
舉報
0/150
提交
取消