[Matplotlib-users] Problem with importing LaTeX package amsmath and $\text{}$

2013-03-30 Thread Pawel Chojnacki
Hello, I've been having some troubles with LaTeX in matplotlib. My example script: #!/usr/bin/env python2 #-*- coding: utf-8 -*- __author__ = 'Pawel Chojnacki' __copyright__ ='Copyleft 2013 Pawel Chojnacki' __version__ = '1.0' __date__ = '29-03-2013&#x

Re: [Matplotlib-users] Problem with importing LaTeX package amsmath and $\text{}$

2013-03-30 Thread Pawel Chojnacki
t; using latex, but mpl's stripped down tex implementation. > > Try setting usetex to True, or alternatively I think you could use \mathrm > instead of \text to get non mathematical text. > > HTH > > > On 30 March 2013 11:43, Pawel Chojnacki wrote: > >> Hello, &g

Re: [Matplotlib-users] Problem with importing LaTeX package amsmath and $\text{}$

2013-03-30 Thread Pawel Chojnacki
2013/3/30 Juergen Hasch > Am 30.03.2013 16:29, schrieb Pawel Chojnacki: > > Please pardon me, but what object is math.usetex attribute of? I can't > find it in the documentation. > > > > http://matplotlib.org/users/usetex.html Mentions only text.usetex

Re: [Matplotlib-users] Problem with importing LaTeX package amsmath and $\text{}$

2013-03-30 Thread Pawel Chojnacki
> mpl.rcParams['text.latex.**unicode'] = True > mpl.rcParams['text.usetex'] = True > > > import pylab as py > > py.axhspan(8400,8730,alpha=0.**15) > py.title(u'Wyniki eksperymentu pomiaru gęstości ciała > stałego',size='large',family

Re: [Matplotlib-users] Problem with importing LaTeX package amsmath and $\text{}$

2013-04-05 Thread Pawel Chojnacki
Thank you, it works flawlessly now :) 2013/3/31 Juergen Hasch > Am 31.03.2013 08:50, schrieb Pawel Chojnacki: > > Thank you very much - hovewer, your solution isn't enough. Adding your >> lines generate: >> >> > The problem is this: > > > Run