% ___ 2D -  Basis  - Plot____
% _______________________________________________

clear all; close all; clf;

% Then plot some multiline data.
t = 0:pi/20:2*pi;
a = ones(length(t),9);

figure(1)
subplot(121)
for i = 1:6
    a(:,i) = sin(t-i/5)';
    plot(t,a)
    h = findobj('Type','Line');
    set(h, 'Linewidth', 2)
    title('\bf  div.  Percent - Formate')
    drawnow
    pause(0.2)
end

ha = gca; 
labels = get(ha,'yticklabel');                          % > get the y axis labels 
for i = 1:size(labels,1) 
    newlabel(i,:) = [labels(i,:) ' %']; 
end
set(ha,'yticklabel', newlabel); 

pause(1)
    xticks = (1:10)*10; 
    labels = cell(1, 10); 

    for k = 1:10 
        labels{k} = [num2str(xticks(k)) ' %']; 
    end 
    set(gca, 'XTickLabel', labels) 
    set(gca, 'Color', [1 0.9 0.55] );
pause(1)
% ::::::::::::::::::::::::::::::::::::::::::.
subplot(122)
for i = 1:4
    a(:,i) = cos(t)';
    plot(t,a)
    h = findobj('Type','Line');
    set(h, 'Linewidth', 2)
    set(gca, 'XTick', [], 'XTickLabel',  []);
    title('\bf  div.  Percent - Formate')
end

P2 = [0.58, 0.52, 0.32, 0.007] ;                                
ax2 = axes('Position', P2);
set(ax2,'Color','none', 'YTick',[],'XTick', [0:10], 'XTickLabel',  [],'FontSize',12);
set(gca,'XMinorTick','on', 'Xgrid','on')
 % set(gca, 'XTickLabel', sprintf('%d%%|', 0:10)) 
    xticks = (1:10); 
    labels = cell(1, 10); 

    for k = 1:10 
        labels{k} = [num2str(xticks(k)) ' %']; 
    end 
    set(gca, 'XTickLabel', labels) 

pause(1)
 % :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 