How to change the position of the exponential in a colorbar

3 次查看(过去 30 天)
I'm using MATLA R2020a to generate an image with colorbar. I'm including the colorbar using the below code. But the exponential part is coming below the colorbar which I want to be at the top position.
contourf(X*10^6,Y*10^6,(S1),50,'edgecolor','none'), axis square; title('(S2)'); colorbar
How do I change that? Im including the figure here.
  2 个评论
KSSV
KSSV 2021-12-8
How about?
contourf(S1,50,'edgecolor','none'), axis square; title('(S2)'); colorbar
U B
U B 2021-12-8
No, I need to assign maximum valuses for x and y axis as 1. If I do that exponential term will come.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Colorbar 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by