Font in figures needs to load a specific latex package \usepackage{tipa}

I want to use IPA vowel labels in my figures and to do that I need to load the package in latex \usepackage{tipa}. Is this possible as searching online besides using the new backend “pgf” I haven’t seen how to manually select latex packages to load when using tex. Is this possible?

Also a side note is everytime when running ipython qtconsole and if I select text.usetex = True in my .matplotlibrc or by running rcParams.update() the kernal always seems to force a restart. It seems it gets snagged in the external call to latex. It still works fine but a message pops up constantly telling you the kernal needs to be restarted.

You can set the tex preample without using the "pgf" backend. Here's how
I'm setup:

impot matplotlib
matplotlib.rcParams['text.usetex']
Out[12]: True

matplotlib.rcParams['text.latex.preamble']
Out[13]:
['\\usepackage{siunitx}',
'\\sisetup{detect-all}',
'\\usepackage{helvet}',
'\\usepackage{sansmath}',
'\\sansmath']

···

On Thu, Jul 25, 2013 at 12:16 PM, Jeffrey Spencer <jeffspencerd@...287...>wrote:

I want to use IPA vowel labels in my figures and to do that I need to load
the package in latex \usepackage{tipa}. Is this possible as searching
online besides using the new backend "pgf" I haven't seen how to manually
select latex packages to load when using tex. Is this possible?