Is it possible to pan an imagesc output programmatically in a manner analogous to the zoom function?
2 次查看(过去 30 天)
显示 更早的评论
I can programmatically zoom in or out of an image created with imagesc very simply, using code such as this:
imagesc(myImage)
zoomFactor = 1.5;
zoom(zoomFactor);
I would like to be able to pan horizontally and vertically in similar fashion, i.e by using code and not involving the GUI. The motivation is to be able to execute exactly repeatable pans.
0 个评论
采纳的回答
Rik
2023-4-5
You can set the XLim and YLim properties (of the axes object). That should replicate a repeatable pan.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Performance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!