I want to add some text to a python plot. I'm using r'$\bar{p}$', but I want the bar to be at the bottom. I tried to use latex package accent and write r'$\usepackage{accents} \underaccent{\bar}{p}$'. But it doesn't work.
Any idea how to do that? Thanks in advance.