Hi,
I want to place the tick at the mid value of the specific color range, for example, for red : 0-10, place the tick at 5, for blue color: 11-20 tick at 15 etc…
Also, I want to create uniform color bar across multiple datasets which have different ranges of values.
What I have so far does not work,
variable = Mis;m_proj('Equidistant cylindrical','lat',[-85.044 85.044],'lon',[-180 180],'aspect',.2);m_pcolor(Lon,Lat,variable);h=colorbar('Ticks',[0,5,10,15, 20],... 'TickLabels',{'0','5','10','15', '20');colormap(jet(5));caxis([0 20])
Any help is appreciated.
Best Answer