From: Michael D. <md...@st...> - 2007-08-13 15:37:32
|
Michael Droettboom wrote: > Rob Hetland wrote: >> On Aug 6, 2007, at 4:03 PM, Michael Droettboom wrote: >> I have been thinking that it might be possible to use some of the CM >> sans fonts, like CM bright. Also, there is a Arev font set (vera, >> backwards -- basically Bitstream Vera with math extensions) that looks >> like it might be promising, but it seems that mathtext does not see >> these extented characters. > > I'll download these fonts and give them a try. The Arev fonts are working for me. They aren't 100% complete, but there are lots of basic things in there, like \neq for instance. In fact, this is the most complete free font I've seen in terms of math symbols (The long-awaited Stix fonts don't count until I can see it). There are also symbols in there which are not part of regular LaTeX, and at present there is no way to get at them from matplotlib. (That's on my TODO list.) Perhaps it's a configuration issue? I put all the Arev fonts in my ~/.fonts (which is now looked at by matplotlib) and added the following to my matplotlibrc: mathtext.use_cm : False mathtext.fallback_to_cm : True mathtext.cal : (['Arev Sans'], 'normal', 'oblique') mathtext.it : (['Arev Sans'], 'normal', 'oblique') mathtext.rm : (['Arev Sans'], 'normal', 'normal') mathtext.bf : (['Arev Sans'], 'bold', 'normal') mathtext.sf : (['Arev Sans'], 'normal', 'normal') Cheers, Mike |