[SciPy-User] [Matplotlib-users] use matplotlib to produce mathathematical expression only

Robert Kern robert.kern at gmail.com
Mon May 16 11:06:20 EDT 2011


On Mon, May 16, 2011 at 09:23, Johannes Radinger <JRadinger at gmx.at> wrote:
>
> -------- Original-Nachricht --------
>> Datum: Mon, 16 May 2011 08:28:49 -0500
>> Von: Robert Kern <robert.kern at gmail.com>
>> An: SciPy Users List <scipy-user at scipy.org>
>> CC: matplotlib-users at lists.sourceforge.net
>> Betreff: Re: [Matplotlib-users] [SciPy-User] use matplotlib to produce        mathathematical expression only
>
>> On Mon, May 16, 2011 at 08:21, Johannes Radinger <JRadinger at gmx.at> wrote:
>> > Hello,
>> >
>> > I want to produce a eps file of following mathematical expression:
>> >
>> r'$F(x)=p*\frac{1}{s1\sqrt{2\pi}}*e^{-\frac{1}{2}*(\frac{x-m}{s1})}+(1-p)*\frac{1}{s1\sqrt{2\pi}}*e^{-\frac{1}{2}*(\frac{x-m}{s1})}$'
>> >
>> > is it possible to somehow missuse matplotlib for that to produce only
>> the function without any other plot things? Or is there a better python
>> library within scipy? I don't want to install the complete latex libraries just
>> for producing this single eps file.
>>
>> Check out mathtex. It is matplotlib's TeX parsing engine and renderer
>> broken out into a separate library:
>>
>> http://code.google.com/p/mathtex/
>
> I also thought about mathtex but don't know how to use my mathematical expression without a plot of axis etc. any suggestions? I just want to have the formated math expression as eps and I don't know how to do it, still after reading in the matplotlib-manual.

The mathtex that I link to above is a separate library, not a part of
matplotlib. Please follow the link.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco



More information about the SciPy-User mailing list