popout

バージョン 1.0.0.0 (3.22 KB) 作成者: Simon Henin
creates a popout plot (e.g. zoom-in outset plot) from a specified figure.
ダウンロード: 2.6K
更新 2011/2/28

ライセンスの表示

Useful function to create zoomed in "popout" plots for presentations or publications.

popout(h, xmin, xmax, props)

creates a popout plot (e.g. outset plot) from axis contained in the figure specfied by handle h, from limits specified by xmin and xmax.

example:

x=0:0.1:100;
y = bessel(1,x);
plot(x,y);
popout(gcf, 10, 20);

more complex popout plot example (with axes properties):

x=0:0.1:100;
y1 = bessel(1,x);
y2 = bessel(1,x)*2;

plot(x,y1, x, y2, 'linewidth', 2); grid on;
xlabel('time'); ylabel('amplitude');
title('Bessel functions');
set(gca, 'fontsize', 12, 'linewidth', 2);
ylim([-10 2]);

props.axes1.position = [0.1 0.15 0.7 0.8];
props.axes2.position = [0.5 0.1 0.4 0.6];
props.axes1.fontsize = 10;
props.axes2.fontsize = 18;
props.axes2.linewidth = 2;
props.xlabel = 'poput x-label';
props.ylabel = 'poput y-label';

[ax1 ax2] = popout(gcf, 10, 20, props);

引用

Simon Henin (2024). popout (https://www.mathworks.com/matlabcentral/fileexchange/30556-popout), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2008b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersVisual Exploration についてさらに検索
タグ タグを追加

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0