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

How can I add list text to a matplotlib polar plot – Photoshop

import matplotlib.pyplot as plt import numpy as np fig = plt.figure(figsize=(13, 13)) ax1 = plt.subplot( projection='polar') ax1.set_theta_zero_location('N') ax1.set_thetagrids(np.arange(0.0, 360.0, 25.7143))# /14 ax1.set_rgrids(np.arange(0.8,1,)) amount1 = [('89','c'),'04','76',('93','a'),'56', '11','45','61','85',('37','b'), '51','97','24','07'] r = 0.8 #theta = 25.7143 * range(14) # amount1:add to intersections plt.show()…

VIEW QUESTION
Back To Top
Search