How to switch the position and values of X and Y axes?
44 次查看(过去 30 天)
显示 更早的评论
采纳的回答
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
2020-10-19
Glad I could help.
Your question was clear but I wanted to cover other interpretations just in case.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Orange 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!