Hi all,
I am trying to make a nice figure with pcolor in combination with colorbar. Running the code shown below results in a figure with way too many tick labels (multiple and double overlapping) on the x-axis and colorbar. Is there a nice solution for this? I have to make quite a number of these graphs (100+). Any idea is welcome!
Best regards, Simon
The code (please try to run it, the result is quite astonishing):
minu = -6;maxu = 6;U = 2*(rand(1,1000)+1);V = 6*rand(1,1000);Z = 2*(rand(1,1000)-0.5);Urange = linspace(min(U),max(U),100);Vrange = linspace(min(V),max(V),100);[UI,VI] = meshgrid(Urange,Vrange);ZI = griddata(U,V,Z,UI,VI,'cubic');h = pcolor(UI,VI,ZI);set(h, 'EdgeColor', 'none');hcb = colorbar;colormap(hsv(256));caxis([minu, maxu]);colormap(flipud(colormap));
Best Answer