From: John H. <jdh...@ac...> - 2004-03-18 23:38:40
|
>>>>> "Flavio" == Flavio Codeco Coelho <fcc...@ci...> writes: Flavio> Hi, I use matplotlib for a math modelling software. Flavio> I would like to create a figure, using the mathtext Flavio> module, that would consist entirely of a list of Flavio> equations. Flavio> This figure would be embedded in WX. Flavio> can anyone give me some pointer on how to get started? First port mathtext to wx <wink>. There are two ways to do this: * Write WXAgg: This is easier than you think. * Use the image_as_str method that ft2font provides to get a pixel array from the math fonts and transfer them to the wx canvas using the wx API. Something like draw_from_rgba. I don't know WX very well. Is there a WX method that allows you to draw from a character buffer or array? Jeremy earlier expressed some interest in WXAgg but I don't know what the current status of that is. After that is done, we can move on to your question. Hint: see examples/alignment_test.py for examples of laying out just text using 0,1 coords. JDH |