# 3d plots without Java

 0 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 219 ● 1 ● 12 ● 30 Kelvin Li 443 ● 10 ● 17

 5 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 posted May 17 '11 benjaminfjones 2545 ● 4 ● 36 ● 67 http://bfj7.com/ kcrisman 7427 ● 17 ● 76 ● 166 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

[hide preview]