I can't change the contour colorbar of the font properties or contour labels!!!

조회 수: 2 (최근 30일)
Michael
Michael 2016년 1월 13일
편집: Michael 2016년 1월 13일
This is my simplified code:
h = axes;
set(h,'position',[0.511805555555556 0.131326949384405 0.393194444444445 0.715458276333789]);
% scatter(x(:),y(:),5,top(:));
% x and y are 2D matrices
[c,h] = contourf(x,y,top','LevelList',[-3000 -2750 -2500 -2000 -1500 -1000 -500 -250 -150 -50 0]);
% set(gca,'FontName','Helvitca')
clabel(c,h,'fontsize', 26) % fontsize remains the default - I've tried changing color etc.. no luck
hold on
ylim([39.87 40.2]);
xlim([7.2 8.3]);
load('mapcm'); % my personal colormap
set(gcf,'ColorMap',mapcm)
caxis([-3000 0])
cb = contourcbar('Location','southoutside');
cb.XLabel.String = 'Bathymetry [m]';
set(cb,'FontSize',16); % these work fine but..
So as well as being able to change the label properties, I want to seperate the contourbar into 250m interval levels. How do I do this?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by