フィルターのクリア

Problem with Openfig handling

3 ビュー (過去 30 日間)
eddie
eddie 2017 年 7 月 4 日
コメント済み: eddie 2017 年 7 月 4 日
Hi all, I want to load an existing figure, where I have some subplots, let's say 6 subplots (3 rows, 2 columns). So, to load this, I wrote:
fig=openfig('Figure1.fig');
then, to set the figure and axis properties, I wrote:
set(fig,'Color','None');
set(gca,'Color','None');
Figure properties works good, but axis properties (gca) doesn't work as I wish, because only changes the last subplot (3,2,6). What should I do to set the whole subplots existing in the Figure I loaded?
Thanks in advance!

採用された回答

Adam
Adam 2017 年 7 月 4 日
編集済み: Adam 2017 年 7 月 4 日
hAxes = findobj( fig, 'type', 'axes' );
set( hAxes, 'Color', 'None' )
  1 件のコメント
eddie
eddie 2017 年 7 月 4 日
Thanks, Adam, that is what I'm looking for. Best wishes!

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by