set(0,'ScreenDepth',16)

[th,r]=meshgrid((0:0.4:360)*pi/180,0:0.005:2);
[X,Y] =pol2cart(th,r);

%W=(2^N2)/2;

Z= max( min( real( ZZ(:,:,N2) ) , 2*ones(401,901) ) , -2*ones(401,901) );
%Z= max( min( imag( ZZ(:,:,N2) ) , 2*ones(401,901) ) , -2*ones(401,901) );
%Z= asin( imag(ZZ(:,:,N2)) ./ abs(ZZ(:,:,N2)) );
%Z= max( min( abs( ZZ(:,:,N2) ) , 3*ones(401,901) ) , zeros(401,901) );

h=surf(X,Y,Z);
colormap spring;
shading interp
%set(h,'BackFaceLighting','lit')
%      'SpecularExponent',1,...
%      'AmbientStrength',0.5)

light('Position',[-10,-15,-10])
light('Position',[10,15,10])
lighting phong
set(gcf,'Position',[0,0,400,400],...
        'PaperPosition',[0,0,5,5],...
        'InvertHardcopy','off')

%        'Visible','off')
set(gca,'XLim',[-1.7 1.7],...
        'XTick',[-1.5,-1,-0.5,0,0.5,1,1.5],...
        'XTickLabel',['-1.5';'  -1';'-0.5';'   0';' 0.5';'   1';' 1.5'],...
        'YLim',[-1.7 1.7],...                 
        'YTick',[-1.5,-1,-0.5,0,0.5,1,1.5],...
        'YTickLabel',['-1.5';'  -1';'-0.5';'   0';' 0.5';'   1';' 1.5'],...
        'ZLim',[-1 1],...
        'ZTick',[-1,0,1],...
        'ZTickLabel',['-1';' 0';' 1'])


%    'XTickLabel',['-1.5';'-1';'-0.5';'0';'0.5';'1';'1.5'],...

%        'DataAspectRatio',[1 1 1],...
%        'PlotBoxAspectRatio',[1 1 1],...
view([-70 70]);

%print('-djpeg80','-r80','mist1.jpg')