Parametric 3d plot not showing

asked 7 years ago

Poetastrophe gravatar image

updated 7 years ago

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?

Preview: (hide)

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 ( 7 years ago )