[SciPy-User] use matplotlib to produce mathathematical expression only
Robert Kern
robert.kern at gmail.com
Mon May 16 09:28:49 EDT 2011
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/
Also, please send matplotlib questions just to the matplotlib list. Thanks.
--
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