Can anyone share m.file for inset zooming of figure with multiple subplots?
2 views (last 30 days)
Show older comments
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 Comments
Answers (1)
mizuki
on 25 Oct 2016
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
See Also
Categories
Find more on Data Exploration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!