[wxPython-users] Display of equations?
Christopher Barker
Chris.Barker at noaa.gov
Fri Jun 8 14:07:18 PDT 2007
Anthony M. Floyd wrote:
> What's the "best" way to display equations in wxPython?
nothing fabulous, unfortunately.
> Our app uses
> matplotlib so I recognize that I could embed an empty plot and use
> MathTeX to display the equation, but that doesn't seem very elegant.
> Does anyone know of a library that will render MathML or MathTex to
> something that wx.Image can handle?
why not do what MPL does -- run the TeX trough tex and dvipng, then
render that.
What would be even better is to make a dvi driver for wx. I think
someone was working on a dvi driver for MPL -- maybe you could make use
of their code. The trickiest part would be fonts -- you'd need get
TrueType versions of the TeX fonts installed, so that wx could use them.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the wxpython-users
mailing list