Placing the pound symbol '£' in a Python plot axis label

1.1k Views Asked by At

Trying to place the pound symbol; '£', in a Python plot label had given me a headache.

Simple plt.xlabel(r"$\pounds$") does not seem to work. Suggestion are really appreciated.

Thanks

2

There are 2 best solutions below

0
Thnp On BEST ANSWER

Thank you guys, I just reinstalled LaTeX and seems to work now. That was very weird. I was getting an exception in Tkinter callback only with the pound symbol---spent a couple of hours on that.

0
BlivetWidget On

Try chr(163)

For future reference, go into your interpreter and type

>>> ord('£')
163