%% Set Axes and Color Limits for Isosurface
% Use volumebounds to set the axes and color limits for an isosurface returned by the flow function.

[x,y,z,v] = flow;
p = patch(isosurface(x,y,z,v,-3));
isonormals(x,y,z,v,p);
daspect([1 1 1]);
isocolors(x,y,z,fliplr(v),p);
shading interp
axis(volumebounds(x,y,z,v));

% Copyright 2012 The MathWorks, Inc.