フィルターのクリア

How to switch the position and values of X and Y axes?

34 ビュー (過去 30 日間)
Arash A.
Arash A. 2020 年 10 月 19 日
コメント済み: Arash A. 2020 年 10 月 19 日
Hi
I need to switch the position and values of X and Y axes in plotting colormaps. I am using "imagesc" to plot the graphs and eventually, the values for X and Y axes apprear incorrectly. Any help would be appreciated.

採用された回答

Adam Danz
Adam Danz 2020 年 10 月 19 日
編集済み: Adam Danz 2020 年 10 月 19 日
"I need to switch the position and values of X and Y axes in plotting colormaps"
Do you mean instead of imagesc(x,y,c) you want imagesc(y,x,C)?
Or do you want to flip any of the axes using ax=gca; ax.YDir='reverse'or ax.XDir='reverse';?
Or do you want to change which side of the axes host the ticks and labels using ax.XAxisLocation='top'; ax.YAxisLocation='right'?
  3 件のコメント
Adam Danz
Adam Danz 2020 年 10 月 19 日
Glad I could help.
Your question was clear but I wanted to cover other interpretations just in case.
Arash A.
Arash A. 2020 年 10 月 19 日
Thanks again.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeColormaps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by