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!