When plotting latitude, how do I make indices appear as actual values? using function pcolor
Afficher commentaires plus anciens
When I just use all latitudes in the file (values -90 to 90) then I do not have problems , but I tried to limit my latitudes to degrees 0 to 90 using this NH=find(latitude<=90&latitude>=0);
and on the plot, the latitudes come up as the indices (~30 to ~75)
this is the code that I used
figure
pcolor(NH,level,T_std_DJF_')
colorbar;
shading flat;
xlabel('Latitude');
ylabel('Level (millibars)');
set(gca,'ylim',[10 1000],'ytick',[10 100:100:1000]);
title('Standard Deviation of Air Temperature DJF 1948-2012');
set(gca,'ydir','reverse')
caxis([1 10])
When I try to edit x limits with set(gca, 'xlim',[0 90], 'XTickLabel', [ 0:10:90 ] ); then it includes big white blank spaces on the sides of the plot. T_std_DJF_ uses the latitudes NH
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Contour Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!