display 3d graphics in TeXmacs sage plugin

130 views
Skip to first unread message

DJDANG

unread,
Oct 20, 2008, 9:26:58 AM10/20/08
to sage-support
Hi everyone, I'm having trouble trying to display 3D graphic objects
made with sage on TeXmacs. Everytime I try to plot any kind of 3D
object, it just says "Graphics3D Object" and that's it, nothing else
show up.
Please anyone who knows how this works give some advise or some other
option to use.
Thanks in advance,
Daniel

Justin C. Walker

unread,
Oct 20, 2008, 10:42:41 AM10/20/08
to sage-s...@googlegroups.com
Hi, Daniel,

On Oct 20, 2008, at 06:26 , DJDANG wrote:

> Hi everyone, I'm having trouble trying to display 3D graphic objects
> made with sage on TeXmacs. Everytime I try to plot any kind of 3D
> object, it just says "Graphics3D Object" and that's it, nothing else
> show up.

It's hard for anyone to guess what the problem is without knowing what
it is you are doing. Can you post a "minimal Sage example" that shows
the problem?

Thanks.

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds
--------
If you're not confused,
You're not paying attention
--------

William Stein

unread,
Oct 20, 2008, 10:55:41 AM10/20/08
to sage-s...@googlegroups.com

The texmacs/sage interface was written by Mike Hansen before
Sage had any 3D plotting, so I suspect it doesn't at all support
it. That said, two questions:
(1) does 2D plotting work?
(2) What happens if you do
sage: var('x,y')
sage: plot3d(sin(x*y),(x,-1,1),(y,-1,1)).show()
(3) What if you do
sage: var('x,y')
sage: plot3d(sin(x*y),(x,-1,1),(y,-1,1)).show(viewer='tachyon')

> Thanks in advance,
> Daniel
>
> >
>

--
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

DJDANG

unread,
Oct 21, 2008, 9:45:47 PM10/21/08
to sage-support
TeXmacs allows to plot 2D graphics but when I try to plot any 3D
object it just shows "Graphics3D Object", so I gess TeXmacs doesn't
support sage 3D plotting.
Anyway thanks for the help.

On 20 oct, 09:55, "William Stein" <wst...@gmail.com> wrote:
> On Mon, Oct 20, 2008 at 6:26 AM, DJDANG <danyfe...@gmail.com> wrote:
>
> > Hi everyone, I'm having trouble trying to display 3D graphic objects
> > made with sage onTeXmacs. Everytime I try to plot any kind of 3D
> > object, it just says "Graphics3D Object" and that's it, nothing else
> > show up.
> > Please anyone who knows how this works give some advise or some other
> > option to use.
>
> Thetexmacs/sage interface was written by Mike Hansen before

chu-ching huang

unread,
Oct 21, 2008, 11:51:23 PM10/21/08
to sage-support
Hi,

Sage-3.1.1 and TeXmacs-1.0.7 used:

2D plot will be embedded in TeXmacs worksheet;

> sage: var('x,y')
> sage: plot3d(sin(x*y),(x,-1,1),(y,-1,1)).show()

3D Plot will be showed by Jmol;

>    (3) What if you do
> sage: var('x,y')
> sage: plot3d(sin(x*y),(x,-1,1),(y,-1,1)).show(viewer='tachyon')
>

3D plot will be shown in firefox browser.


cch

adrian

unread,
Oct 22, 2008, 12:09:58 AM10/22/08
to sage-support
sage: var('x,y')
sage: plot3d(sin(x*y),(x,-1,1),(y,-1,1)).show()

This launches jmol, and one is able to rotate the shape. One can also
save the image and then import the saved image into Texmacs

sage: var('x,y')
sage: plot3d(sin(x*y),(x,-1,1),(y,-1,1)).show(viewer='tachyon')

launches a viewer (eog) of a file in format png. one can also save and
then import.

However, the behaviour for 2d plots is nice in that it immediatly
includes it in the text.
Reply all
Reply to author
Forward
0 new messages