function plotFig(f_handle, a, b, d)
if d == 3
	n = 151;
	x = linspace(a,b,n);
	y = linspace(a,b,n);
	z = linspace(a,b,n);
	[X,Y,Z] = meshgrid(x,y,z);
	[in, val] = f_handle(X,Y,Z);
	fv = isosurface(x,y,z, val,0);
	cdata = smooth3(rand(size(val)),'box',7);
	p = patch(fv,'FaceColor',[0 0 .7],'EdgeColor',[0 0 1]);
	isonormals(x,y,z,val,p)
	isocolors(x,y,z,val,p)
	p.FaceColor = 'interp';
	p.EdgeColor = 'none';
	view([-25,20]);
	daspect([1 1 1])
	axis tight
	camlight
	lighting gouraud
else
	warning('Plot only available in 3d.')
end
