skip to Main Content

Unicode fails in matplotlib legend label, with "Package inputenc Error: Unicode character … (inputenc) … not set up for use with LaTeX." – Debian

My legend labels in matplotlib are failing with unicode characters. For instance, #!/usr/bin/python # -*- coding: utf-8 -*- import matplotlib.pyplot as plt plt.plot(0,0, label='foo Д') plt.legend() fails with: Traceback (most recent call last): File "/home/meuser/.local/lib/python3.9/site-packages/matplotlib/texmanager.py", line 252, in _run_checked_subprocess report…

VIEW QUESTION
Back To Top
Search