Ask Your Question

Benhuard's profile - activity

2021-01-30 16:45:19 +0100 received badge  Student (source)
2013-07-19 00:25:58 +0100 received badge  Notable Question (source)
2012-03-26 07:32:32 +0100 received badge  Popular Question (source)
2011-12-21 16:44:24 +0100 received badge  Taxonomist
2010-09-19 15:45:43 +0100 asked a question 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
p.save('bump003.sobj');
p.save('bump003.png');
a = load('bump003.sobj');
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

http://www.sagemath.org/doc/reference...

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, Benhuard