Can anyone share m.file for inset zooming of figure with multiple subplots?
2 次查看(过去 30 天)
显示 更早的评论
I am having a figure with multiple subplots. I am having few m.files that can zoom-in specific portion of graph and provide an inset. But those files can only zoom-in 1 plot (not figure with more than 1 subplpots). I need an m.file or matlab tool using which i can zoom-in any portion of any subplot.
0 个评论
回答(1 个)
mizuki
2016-10-25
If you meant that you want to zoom not only one subplot but all subplots, linking all axes with LINKAXES would do.
figure;
ax1 = subplot(1,2,1);
plot(rand(5,5))
ax2 = subplot(1,2,2);
plot(rand(5,5))
linkaxes([ax1, ax2], 'xy')
zoom on
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!