% _____ Design :   2D - 3D - bar  ____________
% __________________________________________

clear all ; close all ; clf;

Y= [1 2 5 7 6 7 9 2 4 6];

subplot(121)
bar(Y);                                     %  change  to  bar3  .... ???
b = findobj(gcf,'type','patch');
% :::::::::::::. special coloring ::::::::::::::::
col = get(b,'facevertexcdata');
f    = get(b,'faces');
ncol = numel(Y);
colormap(hsv(ncol));
col(f(:,1)) = [1:ncol];
set(b,'CDataMapping', 'direct', 'facevertexcdata', col)
pause(1)
% ::::::::::::::::::::::::::
subplot(122)
    HB = bar3(Y);                                     % >>> change  to  bar3  Possible .... ???
% :::::::::::::. special coloring ::::::::::::::::
    HBcol = get(b,'facevertexcdata');
    HBf    = get(b,'faces');
    Ncol = numel(Y);
    colormap(jet(Ncol)); 
    col(HBf(:,1)) = [1:Ncol];
%     set(HB,'CDataMapping', 'direct', 'facevertexcdata', col)
