Printing figures without their annotations now?
Mostrar comentarios más antiguos
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 comentarios
Hugh Wheaton
el 13 de Mayo de 2020
Editada: Hugh Wheaton
el 13 de Mayo de 2020
Rik
el 13 de Mayo de 2020
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
el 13 de Mayo de 2020
Rik
el 13 de Mayo de 2020
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
el 14 de Mayo de 2020
Editada: Hugh Wheaton
el 14 de Mayo de 2020
Rik
el 14 de Mayo de 2020
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.
Respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!