필터 지우기
필터 지우기

matlab figure turns to gray

조회 수: 40 (최근 30일)
michael
michael 2021년 12월 27일
댓글: dpb 2021년 12월 28일
Hi,
I have pretty old matlab (R14 SP3). When I perform the plots on specific case, the figure changes to grey and all the data is disappered (except the legend).
Unfortenutly I can't share the figure, as it is on other network computer.
1. Any idea what could be the issue?
2. As part of trouble shooting, I'd like to export all the properties from the figure to the file before the command and after the command and compare.
How can I do that?
  댓글 수: 15
michael
michael 2021년 12월 28일
I don't have undefined values.
dpb
dpb 2021년 12월 28일
Either show us an image or explain more throughly what the image looks like -- my initial reading of your description was the whole figure area turned gray; wasn't thinking about the lack of fill and the lines still being drawn and being shown as Walter illustrated.
Is the figure filled or open? If it is open, that's conclusive proof of either there is a non-finite value in the values table or the figure doesn't close.
The other way besides to leave nothing but a line would be for table(i,1)==table(i,2) which is a degenerate area or line.
I think we've gone about as far as is possible without a dataset that illustrates the problem.
As far as the Q? about the number of objects, you can always test by changing your loop index to start at, say, 90 instead of 1 and see if you get past the 97th dataset without the issue occurring -- I'm betting it still will show up because it is actually data-related.

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

답변 (1개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021년 12월 28일
편집: Sulaymon Eshkabilov 2021년 12월 28일
(2) To export all figure properties can be done via File --> Exort Set Up ...
You may also consider to Gnerate a fcn file that will contain most of the plot options from the current figure:
File --> Gnerate a Code
  댓글 수: 1
michael
michael 2021년 12월 28일
Generating the code, I see that there no difference at all excpet the new record.

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

카테고리

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

제품


릴리스

R14SP2

Community Treasure Hunt

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

Start Hunting!

Translated by