On 05/02/2013 03:16 PM, Paul Hobson wrote:
On Thu, May 2, 2013 at 11:19 AM, Michael Droettboom md...@stsci.edu
mailto:md...@stsci.edu wrote:
I think the confusion here stems from the fact that you're mixing
TeX and non-TeX font commands.
This turns on TeX mode, so all of the
The solution I use when I want all sans-serif out of TeX is to use the
cmbright package, which can be turned on by adding:
rc('text.latex', preamble=r'\usepackage{cmbright}')
That may require installing the cmbright LaTeX package if you don't already
have it.
I am using the sfmath
On Fri, May 3, 2013 at 6:17 AM, Michael Droettboom md...@stsci.edu wrote:
On 05/02/2013 03:16 PM, Paul Hobson wrote
I now see that this was more of TeX issue than an MPL configuration
issue. Your help prompted me to find this solution (similar to yours):
H, I'm using sfmath, too. I actually wrote a helper function to switch fonts.
The preambles are the result of long-term trial and error. Normally, my
preambles include some more custom commands which I left out here because they
would be distracting. I always wondered why matplotlib doesn't do
I think the confusion here stems from the fact that you're mixing TeX
and non-TeX font commands.
This turns on TeX mode, so all of the text is rendered with an external
TeX installation:
rc('text', usetex=True)
In this line, setting it to sans-serif will get passed along to TeX, but
a
On Thu, May 2, 2013 at 11:19 AM, Michael Droettboom md...@stsci.edu wrote:
I think the confusion here stems from the fact that you're mixing TeX
and non-TeX font commands.
This turns on TeX mode, so all of the text is rendered with an external
TeX installation:
rc('text', usetex=True)