nav-left cat-right
cat-right
Matthias Pospiech > Programming > matlab > pcolor and contour plot with different colormaps

pcolor and contour plot with different colormaps

contour with white lines

This is using only one colormap for the pcolor code and displays the contour with white lines.

colormap(jet(colorDepth));
 
hold on;
pcolor(x,y,data); shading flat
 
[C,hfigc] = contour(x, y, data,[0:0.1:1]);
set(hfigc, ...
    'LineWidth',1.0, ...
    'Color', [1 1 1]);
 
hcb = colorbar('location','EastOutside', ...
    'FontSize'   , FontSize    , ...
    'FontName'   , FontName    , ...
    'Ylim'       , [0 1]       , ...
    'Box'        , 'on'        , ...
    'TickDir'    , 'in'        , ...
    'TickLength' , [.02 .02]   , ...
    'LineWidth'  , 0.6);
 
hcLabel = ylabel(hcb,zLabelText);
set([hcLabel], ...
    'FontSize'   , FontSize    , ...
    'FontName'   , FontName);
 
hold off;

Seiten: 1 2 3 4 5

Einen Kommentar schreiben

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *


*

Du kannst folgende HTML-Tags benutzen: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

WP-SpamFree by Pole Position Marketing