Re: [matplotlib-devel] latex pngs in docs

2008-06-10 Thread Darren Dale
On Tuesday 10 June 2008 1:34:45 pm John Hunter wrote: > On Tue, Jun 10, 2008 at 11:51 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > > Is anyone else working on this? I think I may have some time to this > > afternoon, and I don't want to duplicate effort. > > It's been on my wish list, but

Re: [matplotlib-devel] latex pngs in docs

2008-06-10 Thread John Hunter
On Tue, Jun 10, 2008 at 11:51 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > Is anyone else working on this? I think I may have some time to this > afternoon, and I don't want to duplicate effort. It's been on my wish list, but I haven't started, so fire away. Sorry I didn't see your mail e

Re: [matplotlib-devel] latex pngs in docs

2008-06-10 Thread Michael Droettboom
Is anyone else working on this? I think I may have some time to this afternoon, and I don't want to duplicate effort. Cheers, Mike Michael Droettboom wrote: > Not hard, I don't think. The following will give you a FT2Image object > of the expression: > > from matplotlib.mathtext import MathTe

Re: [matplotlib-devel] latex pngs in docs

2008-06-06 Thread Michael Droettboom
Not hard, I don't think. The following will give you a FT2Image object of the expression: from matplotlib.mathtext import MathTextParser mathtext_parser = MathTextParser("Bitmap") ftimage = mathtext_parser.parse(r"$x^i$", 150) From the FT2Image, you can get an rgba buffer, and the width and th