Printing figures without their annotations now?
이전 댓글 표시
For like no reason, matlab is printing figures with everything but an annotation I want on them. I have never had this problem and don't know what's happening.
Code is set up in a for loop for 6 iterations. I pre defined a 1x6 handle array, I then loop through each one and make a plot with axis scaling, limits etc. I then added an annotation for each one, and when I created a for loop to print them all to .png, for some reason the annotations just aren't included (even if I strip back all the formatting to defaults).
I've used this method several times and I have never experienced this problem so I really have absolutely no idea what's causing it.
Cheers
댓글 수: 7
Hugh Wheaton
2020년 5월 13일
편집: Hugh Wheaton
2020년 5월 13일
Rik
2020년 5월 13일
I still can't run this code, because source files are missing. Putting variables in a mat file is also fine, but we need to be able to run your code as posted and see the same thing you see. If we can't run your code we have to read your code, which is a difficult way to find errors.
Hugh Wheaton
2020년 5월 13일
Rik
2020년 5월 13일
I can't reproduce your issue, see attached screenshot of Matlab figure and output image.
Have you modified any settings to do with the renderer?
(off topic: I would suggest not shadowing the dir function with a variable, and to use fullfile to create a file name from the components)
Hugh Wheaton
2020년 5월 14일
편집: Hugh Wheaton
2020년 5월 14일
Rik
2020년 5월 14일
I tend to not use live scripts, so I didn't even think to check. I know Mathworks is putting a lot of time in the further development of live scripts, but I'm not an employee. So if you have suggestions and/or bug reports you should contact them directly.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!