フィルターのクリア

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

2 ビュー (過去 30 日間)
Zunaib
Zunaib 2016 年 10 月 25 日
コメント済み: Zunaib 2016 年 10 月 25 日
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.

回答 (1 件)

mizuki
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
  1 件のコメント
Zunaib
Zunaib 2016 年 10 月 25 日
Dear i have many subplots, i want to zoom in and place it as a separate axes.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeVisual Exploration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by