Possible to add Latex math equations to Sage plots?

187 views
Skip to first unread message

sebe...@spawar.navy.mil

unread,
Oct 6, 2008, 12:08:47 AM10/6/08
to sage-support
Is it possible to add Latex equations to Sage plots?


Chris

Tim Lahey

unread,
Oct 6, 2008, 12:13:16 AM10/6/08
to sage-s...@googlegroups.com, Tim Lahey
I don't know if it is possible with the normal plotting tools, but PyX
supports LaTeX in plots. I think it is available as an optional package.

Tim.

David Joyner

unread,
Oct 6, 2008, 7:37:36 AM10/6/08
to sage-s...@googlegroups.com
On Mon, Oct 6, 2008 at 12:08 AM, sebe...@spawar.navy.mil
<sebe...@spawar.navy.mil> wrote:
>
> Is it possible to add Latex equations to Sage plots?


In 2d plots, yes, for example

sage: P1 = plot(sin(x), (x,-pi,pi))
sage: P2 = text("$y=\sin(x),\ -\pi\leq x\leq \pi$", (1.5,4))
sage: show(P1+P2)


However, I think latex is not (yet?) implemented in text3d.


>
>
> Chris
> >
>

William Stein

unread,
Oct 6, 2008, 12:37:51 PM10/6/08
to sage-s...@googlegroups.com

Yes, there is no latex support for text in 3d plots, and
in fact nothing planned either. I have no clue how it
would even be possible.

William

Robert Bradshaw

unread,
Oct 6, 2008, 1:09:38 PM10/6/08
to sage-s...@googlegroups.com

It would render a png and then use texture mapping. Texture mapping
would be useful for a lot of other things too--jmol supports it (via
voxels) but no one has gotten around to implementing it yet.

- Robert

Martin Albrecht

unread,
Oct 6, 2008, 5:12:18 PM10/6/08
to sage-s...@googlegroups.com
On Monday 06 October 2008, Robert Bradshaw wrote:
> > Yes, there is no latex support for text in 3d plots, and
> > in fact nothing planned either. I have no clue how it
> > would even be possible.
>
> It would render a png and then use texture mapping. Texture mapping
> would be useful for a lot of other things too--jmol supports it (via
> voxels) but no one has gotten around to implementing it yet.

My idea was to render an SVG and use that information to build a 3D model, but
I don't know how complex that would be.

Cheers,
Martin


--
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
_www: http://www.informatik.uni-bremen.de/~malb
_jab: martinr...@jabber.ccc.de

Reply all
Reply to author
Forward
0 new messages