So everything works fine in the sage notebook, and even if I pretty much rewrite the same commands in the Sage terminal. So it can't be a problem with the script.
But when I copy, paste and save the whole script as a standalone file.sage
, and then try
run file.sage
... suddenly:
---> 30 multiPlot = plot(graphs, (x, 0, times[len(times)-1]+3), ymin=0)
31
32
NameError: name 'plot' is not defined
Why doesn't it read "plot" correctly and expect me to define it?