Strange colorbar ticks, not standard form
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I am finding the behaviour of matlab odd when I am making contourf plots. The data I have is low amplitude so typically the data is of the order of 10^{-4} - 10^{-5}. Sometimes the colorbars will have ticks like -10,0,10,20 and have a factor of 10^{-5} and others will have ticks like -1,0,1,2 and have a factor of 10^{-5} above them. Clearly this data of the same order and I am finding this misleading as it appears at a glance the data are of different orders of magnitude.
Is there any way to force this exponent to be 10^{-4} for all the plots? Or at least a quick way to change this so the tics are spaced in the same way?
I am using the following code to generate three subplots:
figure
subplot(3,1,1);
contourf(om1_rng(om1lg)/1e4,om3_rng(om3lg)/1e4,squeeze(GSB2),size(CMRmap,1))
colormap(CMRmap); colorbar; caxis([min1,max1]);
subplot(3,1,2);
contourf(om1_rng(om1lg)/1e4,om3_rng(om3lg)/1e4,squeeze(SE2),size(CMRmap,1))
colormap(CMRmap); colorbar; caxis([min2,max2]);
subplot(3,1,3);
contourf(om1_rng(om1lg)/1e4,om3_rng(om3lg)/1e4,squeeze(ESA2),size(CMRmap,1))
colormap(CMRmap); colorbar; caxis([min3,max3]);
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Colormaps en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!