3d plots without Java

i like this post (click again to cancel)
0
i dont like this post (click again to cancel)

Hello! Is it possible to get a "static" plot of 3D-data? For example, if I state the fixed angles of view and want to get simply a PNG file. Maybe something like the command

gnuplot -e 'set terminal png; set view 80,30; splot "output.txt"'

gives.

If it isn't implemented in Sage right now, is it planned? Thanks.

asked May 17 '11

v_2e gravatar image v_2e flag of Ukraine
219 1 11 24

updated May 22 '11

Kelvin Li gravatar image Kelvin Li
423 9 16
i like this answer (click again to cancel)
5
i dont like this answer (click again to cancel) v_2e has selected this answer as correct

There is a ray-tracer built into Sage called Tachyon. In the example from your previous question, try:

sage: L = [ (1, 1, 1), (1, 5, 7), (8.8, 0, 3),  (7.5, 1.91, 11.8), (0, 0, 0) ]
sage: point3d(L, viewer='tachyon')

or..

sage: x,y=var('x,y')
sage: plot3d(x^2-y^2, (x,-2,2), (y,-2,2), viewer='tachyon')

Here is the section of the Sage manual: Tachyon

link

posted May 17 '11

benjaminfjones gravatar image benjaminfjones
2500 3 34 66
http://bfj7.com/

updated May 18 '11

kcrisman gravatar image kcrisman
6784 14 67 152
Also, on a somewhat related note, if you want a "dynamic"/interactive plot without Java you can use " viewer='canvas3d' " for an HTML5-based 3d plot. cswiercz (May 17 '11)
Nice! I didn't realize that was available. benjaminfjones (May 17 '11)
Though one should point out that this doesn't work so well with the particular example given in L. See http://www.sagemath.org/doc/reference/sage/plot/plot3d/base.html for an example where it is really nice. kcrisman (May 17 '11)
Thanks a lot! I heard something about Tachyon, but didn't think it was as easy! :) I'll play with it. v_2e (May 18 '11)
It seems to need a var('x,y') before the plot3d() example in the answer above (it did for me anyhow) deebs67 (May 18 '11)
see 1 more comment

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Tags:

Stats:

Asked: May 17 '11

Seen: 297 times

Last updated: May 18 '11

powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.