Parametric 3d plot not showing

asked 2017-10-20 10:02:44 -0600

Poetastrophe gravatar image

updated 2017-10-26 13:26:22 -0600

FrédéricC gravatar image

If I write somePlot=parametric_plot3d((sin, cos, lambda u: u/10), (0,20)) somePlot.show() 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

Comments

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 10:34:45 -0600 )edit