[sympy] Saving an equation as a PNG or JPG?

2014-11-17 Thread jeanbigboute
I'd love to be able to save a sympy LaTeX-ified result as an image file to export into other documents. In my business I have to create Powerpoint and am trying python-pptx for this. It allows incorporating images programmatically. I've searched the sympy documentation and other sources

Re: [sympy] Saving an equation as a PNG or JPG?

2014-11-17 Thread Joachim Durchholz
Am 17.11.2014 um 09:13 schrieb jeanbigbo...@gmail.com: I've searched the sympy documentation and other sources but surprisingly have not found anything for equations. You can always take a screenshot. Well, a windowshot :-) I believe that plots can be saved. I'm sure I've missed something.

Re: [sympy] Saving an equation as a PNG or JPG?

2014-11-17 Thread Christophe Bal
Hello. Have you considered a text in a matplotlib graph ? Le 17 nov. 2014 13:51, Alan Bromborsky abro...@verizon.net a écrit : If you would send me an example of your code I might be able to suggest a solution. On 11/17/2014 03:13 AM, jeanbigbo...@gmail.com wrote: I'd love to be able to

[sympy] Re: Saving an equation as a PNG or JPG?

2014-11-17 Thread Dario Beraldi
On Monday, November 17, 2014 8:13:56 AM UTC, jeanbi...@gmail.com wrote: I'd love to be able to save a sympy LaTeX-ified result as an image file to export into other documents. In my business I have to create Powerpoint and am trying python-pptx for this. It allows incorporating images

Re: [sympy] Re: Saving an equation as a PNG or JPG?

2014-11-17 Thread Alan Bromborsky
Do this - from sympy import * from sympy.galgebra import xdvi,Format Format() your code with print statements xdvi(paper='letter') pdf file with name of python file .pdf will be generated On 11/17/2014 09:23 AM, Dario Beraldi wrote: On Monday, November 17, 2014 8:13:56 AM UTC,

Re: [sympy] Re: Saving an equation as a PNG or JPG?

2014-11-17 Thread Jason Moore
There should be some functions in the ipython machinery in sympy that creates pngs from the latex printer using matplotlib. See: https://github.com/sympy/sympy/blob/master/sympy/interactive/printing.py#L34 Jason moorepants.info +01 530-601-9791 On Mon, Nov 17, 2014 at 9:23 AM, Dario Beraldi

Re: [sympy] Re: Saving an equation as a PNG or JPG?

2014-11-17 Thread Aaron Meurer
I believe the preview() function does what you want. http://docs.sympy.org/latest/modules/printing.html#sympy.printing.preview.preview . Aaron Meurer On Mon, Nov 17, 2014 at 9:21 AM, Jason Moore moorepa...@gmail.com wrote: There should be some functions in the ipython machinery in sympy that

Re: [sympy] Re: Saving an equation as a PNG or JPG?

2014-11-17 Thread Aaron Meurer
On Mon, Nov 17, 2014 at 3:13 PM, jeanbigbo...@gmail.com wrote: Thanks for all the replies: Aaron Meurer: I tried preview. It looks like a LaTeX installation is required and on this particular system I'm on, I am not allowed to install it - same with the other suggested package. Is there a