필터 지우기
필터 지우기

my colorbar exponent mark is located at bottom

조회 수: 2 (최근 30일)
li yan
li yan 2016년 4월 9일
댓글: li yan 2016년 4월 10일
yeah, the exponent mark is at the bottom right instead of the upper left. my code is like this
imshow(myData,[]), colorbar
set(gca, 'FontSize', 20, 'FontWeight', 'bold')
this problem will occur sometimes, It's so annoying.

채택된 답변

Walter Roberson
Walter Roberson 2016년 4월 9일
The exponent mark is always on the same side as the tick labels for the axes. You have tick labels for the colorbar, which is a different axes than the image is in.
If you are using R2014a or earlier, then your only way of controlling the exponent is to set the YTickLabel strings -- the exponent only appears if the label mode is auto instead of manual.
If you are using R2014b or R2015a then the method of controlling the exponent is undocumented (but I think it was discovered and posted by someone.)
If you are using R2015b or later, then you can use the new axes YAxis field which has several properties including Exponent and ExponentMode -- however I do not see any way of controlling whether it appears at the top or bottom when it automatically appears.
  댓글 수: 1
li yan
li yan 2016년 4월 10일
thank you very much. I will try your method.

댓글을 달려면 로그인하십시오.

추가 답변 (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