Another way to do this (if one wants all plots to be rendered throug LaTeX) is to modifiy the matplotlibrc to include:
text.usetex : True
And something similar for the text.latex.preamble section.