Re: [Matplotlib-users] using tex in labels but retaining sans-serif font

2009-03-04 Thread Jeffrey Fogel
I've found that putting the text you want to be sans-serif inside \sf{} works. So something like: xlabel(r'$\sf{\Delta direction}) -Jeffrey On Wed, Mar 4, 2009 at 1:59 AM, Jouni K. Seppänen wrote: > per freem writes: > > > i am using the tex feature to put some greek symbols in some labels o

Re: [Matplotlib-users] using tex in labels but retaining sans-serif font

2009-03-03 Thread Jouni K . Seppänen
per freem writes: > i am using the tex feature to put some greek symbols in some labels of my > plots. for example, > > rcParams['text.usetex'] = True > plot(a, b, 'o') > xlabel('\Delta direction') Are you sure you need usetex? Matplotlib's own mathtext renderer is really quite good these days,

[Matplotlib-users] using tex in labels but retaining sans-serif font

2009-03-03 Thread per freem
hi all, i am using the tex feature to put some greek symbols in some labels of my plots. for example, rcParams['text.usetex'] = True plot(a, b, 'o') xlabel('\Delta direction') the '\Delta' is rendered correctly but that changes the fonts of the tick labels and of all the text in the labels to te