ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 20 May 2013 17:39:17 +0200plot() command in load .sage scripthttps://ask.sagemath.org/question/10143/plot-command-in-load-sage-script/Hi experts!!
When i save a .sage script (like 'lalala.sage') with the next text:
var('x')
f(x)=4*sin(x)
plot(f,(x,-3,3))
and then, in SAGE, i put
load('lalala.sage')
there doesn't appears the graph of the f(x), but if i put in SAGE (after load 'lalala.sage'):
plot(f,(x,-3,3))
then the graph of f(x) appears
The question is: Why doesn't appears the graph of f(x) when i load the scipt 'lalala.sage'?
Thanks so much!!
Best regardsmresimulatorMon, 20 May 2013 17:39:17 +0200https://ask.sagemath.org/question/10143/Importing saved 3d plothttps://ask.sagemath.org/question/7704/importing-saved-3d-plot/Hi everyone,
I generated a bunch of 3d plots to produce an animation and I saved them both as png and sobj files, because I wanted to keep the objects for later manipulations. However, when loading back an sobj file, I find them to be unusable. More precesily,
*p=plot3d(lambda x1,y1: h(t0,x1,y1), (-5,5),(-5,5),plot_points=100);* #t0 fixed and h(t,x,y) a procedure<br>
*p.save('bump003.sobj');*<br>
*p.save('bump003.png');*<br>
*a = load('bump003.sobj');*<br>
*a.show()*;
returns the error
*NotImplementedError: You must override the get_grid method.*
while the png image files get correctly generated.
There is no mention of this kind of error in the Plot3D doc, except for parametric surfaces<br>
*http://www.sagemath.org/doc/reference/sage/plot/plot3d/parametric_surface.html*<br>
where it is mentioned that get___grid should indeed be overriden for subclasses of parametric_surface.
Any idea why this error shows up only after importing the object ?
Many thanks,
BenhuardBenhuardSun, 19 Sep 2010 15:45:43 +0200https://ask.sagemath.org/question/7704/