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 Center および File ExchangeGrid Lines, Tick Values, and Labels についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by