Can anyone share m.file for inset zooming of figure with multiple subplots?

17 vues (au cours des 30 derniers jours)
Zunaib
Zunaib le 25 Oct 2016
Commenté : Zunaib le 25 Oct 2016
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.

Réponses (1)

mizuki
mizuki le 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
  1 commentaire
Zunaib
Zunaib le 25 Oct 2016
Dear i have many subplots, i want to zoom in and place it as a separate axes.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Data Exploration dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by