My color map and color bar are not representing the same colors?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have a code something like this.
[m,n]=meshgrid(0:el_length_x:XL, 0:el_length_y:YL);
figure
surf(m,n,D3);
colormap jet;
hc=colorbar;
set(hc, 'ylim', [0 1])
shading interp
![Capture2223.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/144578/Capture2223.jpeg)
![Capture23.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/144579/Capture23.jpeg)
my D3 values are closer to 0 as you can see in the figure 2.
My colorbar shows only the brown but my plot shows different colors. How to avoid this?
0 comentarios
Respuestas (1)
Ver también
Categorías
Más información sobre Colormaps en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!