Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get python to display xbar? A line over the letter x

I've been looking at math notation and different packages but have yet to find anything that lets me print xbar (the average x).

I am hoping to use xbar as a label in matplotlib.

Any suggestions?

Thank you. Cheers

like image 693
As3adTintin Avatar asked Dec 09 '22 07:12

As3adTintin


1 Answers

If you want to use x bar as a label in matplotlib, you can do it like this:

plt.ylabel(r'$\bar{x}$')
like image 127
Rui Silva Avatar answered Dec 11 '22 08:12

Rui Silva