figure
contourf(x*2.54,y*2.54,pdata(j).k,64,'linecolor','none')
colormap('jet')
cbar = colorbar('peer', gca);
cbar.Label.String = 'Mach Number';
xlabel('r [cm]')
ylabel('r [cm]')
hold on
set(gca,'FontSize', fontsize);
scatter(xxxx2*2.54,yyyy2*2.54,[],'k')
st_fig_range = caxis;
caxis([st_fig_range(1) st_fig_range(1)+1]);
cbar.XTick=[round(st_fig_range(1),2):0.1:round(st_fig_range(1),2)+1];
end
axis square
print(gcf,[figpath,Reynoldsrange,...
sprintf('/ContourM%.0fz%.0f', machnumber,j) ],'-depsc','-loose')
2 Comments
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/606616-i-am-using-contour-with-a-color-bar-the-axis-are-not-equal-sizes#comment_1041036
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/606616-i-am-using-contour-with-a-color-bar-the-axis-are-not-equal-sizes#comment_1041036
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/606616-i-am-using-contour-with-a-color-bar-the-axis-are-not-equal-sizes#comment_1043621
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/606616-i-am-using-contour-with-a-color-bar-the-axis-are-not-equal-sizes#comment_1043621
Sign in to comment.