필터 지우기
필터 지우기

Problem with Openfig handling

조회 수: 4 (최근 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 CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by