필터 지우기
필터 지우기

rainflow function usage in app designer causes the figure window open

조회 수: 2 (최근 30일)
farzad
farzad 2020년 4월 2일
댓글: farzad 2020년 5월 12일
Hi All
I have to use rainflow function in my application. but it causes the figure window open despite I have turned off the visibility. is there any solution to that ?
f = figure('visible', 'off');
TT = timetable(tt,B);
rainflow(TT);
title(strcat(filename,'Histogram y'));
saveas(gcf,strcat(filename,'Histogram-y.png'));

채택된 답변

Walter Roberson
Walter Roberson 2020년 4월 2일
When you do not specify output arguments for rainflow() then it calls a function to plot the results. Unfortunately there are a couple of careless lines in the plotting function that bring the resulting axes into focus, and that results in the plot becoming visible.
The work around is to request the output variables from rainflow() and do the plotting yourself.
I will file a bug report about the problem with accidental focus.
  댓글 수: 21
Walter Roberson
Walter Roberson 2020년 5월 12일
axes(p1);
axis('tight');
should become
axis(p1, 'tight');
farzad
farzad 2020년 5월 12일
I did this. Now I have one single figure open and its content changes , given that I have to make several rainflow figures during the run. but I will have this one figure opend.
even If I do
f = figure('visible','off');
It will create another figure, and the ONE figure will remain open

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by