Re: [Matplotlib-users] using the symbol font in TeX plots

2010-03-01 Thread Gökhan Sever
On Mon, Mar 1, 2010 at 8:36 AM, Michael Droettboom wrote: > Alan G Isaac wrote: > >> Gökhan Sever wrote: > >> > >>> For the second idea you mean something as generic as plotting such > >>> markers? > >>> plt.plot(range(10), linestyle='None', marker=u'※ ') > >>> > > > > > > On 3/1/2010 8:33 AM, M

Re: [Matplotlib-users] using the symbol font in TeX plots

2010-03-01 Thread Alan G Isaac
On 3/1/2010 9:36 AM, Michael Droettboom wrote: > What if you want to use the letter 'o' as a marker? That to me seems like a potential source of confusion, as well as a little bit limiting. What would the escaping syntax be to use the letter 'o'? Maybe: allow only unicode strings as string ma

Re: [Matplotlib-users] using the symbol font in TeX plots

2010-03-01 Thread Michael Droettboom
Alan G Isaac wrote: >> Gökhan Sever wrote: >> >>> For the second idea you mean something as generic as plotting such >>> markers? >>> plt.plot(range(10), linestyle='None', marker=u'※ ') >>> > > > On 3/1/2010 8:33 AM, Michael Droettboom wrote: > >> Yes -- but it can't be quite this

Re: [Matplotlib-users] using the symbol font in TeX plots

2010-03-01 Thread Alan G Isaac
> Gökhan Sever wrote: > > For the second idea you mean something as generic as plotting such > > markers? > > plt.plot(range(10), linestyle='None', marker=u'※ ') On 3/1/2010 8:33 AM, Michael Droettboom wrote: > Yes -- but it can't be quite this simple, since there is already a set > of strings

Re: [Matplotlib-users] using the symbol font in TeX plots

2010-03-01 Thread Michael Droettboom
Gökhan Sever wrote: > Thanks again. I didn't know it was complete :) > > For the second idea you mean something as generic as plotting such > markers? > > plt.plot(range(10), linestyle='None', marker=u'※ ') Yes -- but it can't be quite this simple, since there is already a set of strings that hav

Re: [Matplotlib-users] using the symbol font in TeX plots

2010-02-26 Thread Gökhan Sever
Thanks again. I didn't know it was complete :) For the second idea you mean something as generic as plotting such markers? plt.plot(range(10), linestyle='None', marker=u'※ ') On Fri, Feb 26, 2010 at 2:56 PM, Michael Droettboom wrote: > SVN trunk has support for mathtext as symbol markers --

Re: [Matplotlib-users] using the symbol font in TeX plots

2010-02-26 Thread Michael Droettboom
SVN trunk has support for mathtext as symbol markers -- plot(range(10), linestyle='None', marker=r'$\clubsuit$') We could support arbitrary (non-math) text, too, fairly easily. We just need to invent a syntax for it. Mike Gökhan Sever wrote: > Thanks Mike. The Greek symbols become visible w

Re: [Matplotlib-users] using the symbol font in TeX plots

2010-02-26 Thread Gökhan Sever
Thanks Mike. The Greek symbols become visible when I make the changes as you suggested. DejaVu Sans has been installed in my system (Fedora 12). We might put a note on the documentation stating to get wider Unicode coverage people could install additional fonts --DejaVu Sans being one of them inste

Re: [Matplotlib-users] using the symbol font in TeX plots

2010-02-26 Thread Michael Droettboom
Thanks for the reminder. Sorry this fell through the cracks. The reason this worked for me and not for you is that I had set (and later forgotten) font.sans-serif to the following: font.sans-serif : DejaVu Sans, Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetic

Re: [Matplotlib-users] using the symbol font in TeX plots

2010-01-28 Thread Gökhan Sever
On Tue, Jan 26, 2010 at 11:29 AM, Michael Droettboom wrote: > per freem wrote: > > Hi all, > > > > To annotate my figures with Greek letters, I use the following: > > > > import matplotlib > > matplotlib.use('PDF') > > import matplotlib.pyplot as plt > > from matplotlib import rc > > rc('font',**{

Re: [Matplotlib-users] using the symbol font in TeX plots

2010-01-26 Thread Michael Droettboom
per freem wrote: > Hi all, > > To annotate my figures with Greek letters, I use the following: > > import matplotlib > matplotlib.use('PDF') > import matplotlib.pyplot as plt > from matplotlib import rc > rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) > plt.rcParams['ps.useafm'] =

[Matplotlib-users] using the symbol font in TeX plots

2010-01-26 Thread per freem
Hi all, To annotate my figures with Greek letters, I use the following: import matplotlib matplotlib.use('PDF') import matplotlib.pyplot as plt from matplotlib import rc rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) plt.rcParams['ps.useafm'] = True rc('font',**{'family':'sans-se