latex.eval("$\\frac{1}{2}$", {}, filename="/home/foo/myImage.png")
Is it possible to have transparent background ?
Thanks in advance for any assistance!
Shing
Try something like this:
plot(x^2,(x,0,1),transparent=True)
It's an option to "show". Options to show are automatically passed from
plot commands to the function that displays it. See
http://sagemath.org/doc/reference/sage/plot/plot.html?highlight=show#sage.plot.plot.Graphics.show
Thanks,
Jason
Shing
> plot commands to the function that displays it. Seehttp://sagemath.org/doc/reference/sage/plot/plot.html?highlight=show#...
>
> Thanks,
>
> Jason
On 3 led, 18:30, Shing Hing Man <mat...@yahoo.com> wrote:
> Hi Jason,
> Thanks for the reply! But I would like the png file of a latex
> expression, not a plot, to have transparent background.
>
Do you really need to produce this png by Sage? Why not direct LaTeX
and some postprocessors?
btw: for example mathtex produces transparent background (and sources
are available).
http://www.forkosh.dreamhost.com/source_mathtex.html
Robert