%--------------------------------
% Please edit the following lines 
%--------------------------------
% 
% 1. Secect your seuquence.
%
folge=2;      % Edit the file "a.m" and place there your sequence !
%
% 2. Select your measure.
%
mass=1;       % Edit the file "Omega.m" and create file "drinom5.m" !
%
% 3. Choose the highest degree
%
maxgrad=30;
%
%
% ---------------------------------------------------------------

lambdas

epsilons

rekursion

clear r; clear th; clear X; clear Y; clear Z;

% ---------------------------------------------------------------

set(0,'ScreenDepth',16)

for object=1:4
for dimen=3:-1:2
for color=1:4
for N2=1:maxgrad

% --------------------------------------------------------------------

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

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

surf(X,Y,Z);

if color==1 colormap spring; end;
if color==2 colormap summer; end;
if color==3 colormap autumn; end;
if color==4 colormap winter; end;

shading interp
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'])

if object==4  set(gca,'ZLim',[0 2],...
                      'ZTick',[0,1,2],...
                      'ZTickLabel',['0';'1';'2'])
end;

if dimen==3 view([-70 70]); end;
if dimen==2 view([-70 90]); end;

pause(1);

filename = [int2str(folge),int2str(mass),int2str(dimen),int2str(object),int2str(color),'-',int2str(N2),'.jpg'] ;

print('-djpeg80','-r80',filename)


% -----------------------------------------------------------------------

end;   % end N2
end;   % end color
end;   % end dimen
end;   % end object

% -----------------------------------------------------------------------


exit


