Parametric 3d plot not showing

asked 2017-10-20 17:02:44 +0200

Poetastrophe gravatar image

updated 2017-10-26 20:26:22 +0200

FrédéricC gravatar image

If I write somePlot=parametric_plot3d((sin, cos, lambda u: u/10), (0,20)) Into a .sage file and therafter write sage file.sage it will not show anything. While if I run sage interactively from the terminal and write the same it will open jmol viewer and show the file. Why does this happen?

edit retag flag offensive close merge delete


You should try to save your plot to a graphics file : the Sage interpreter that runs your file has no way to know if a terminal is attached to your job or not (yuo might, for example, run it from cron...), and has no way to know that a graphics display is available or not.

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 2017-10-24 17:34:45 +0200 )edit