Missing text objects when exporting graphics in R2022b
Show older comments
Since upgrading to R2022b, I've repeatedly run into an inssue in which text objects, legends, titles, etc do not get printed, or their position is shifted significantly when I export graphics via exportgraphics or export_fig. I'm trying to find some sort of rhyme or reason, but the problem seems somewhat inconsistent. It may only occur with OpenGL, but I'm not entirely sure.
Is this a known problem? Is there a known fix?
I'm using a MacOS Monterey 12.6.1.
4 Comments
Ben Henley
on 19 Jan 2023
I'm getting the same problem as @Chad Greene on R2022b, MacOS Monterey 12.6 using export_fig. @Manas Shukla can you please provide an update? Thanks!
Hannes Helmholz
on 3 May 2024
I expirience the same on R2023a, MacOS 13.6.6, Intel Iris Plus Graphics 650, using text() annotations and exportgraphics(). The rest of the figure exports just fine as far as I'm concerned.
Torben Ellegaard Lund
on 29 Aug 2024
I had the same problem with R2022b but have just updated to R2024a, and the problem has gone.
Torben Ellegaard Lund
on 29 Aug 2024
Forgot to say I am on MacOS Big Sur version 11.7.3
Answers (1)
Manas Shukla
on 15 Nov 2022
0 votes
This issue can be mapped to the graphics drivers. The issue can be resolved by trying the following:
- Updating the driver.
- Switching to 'software' or 'hardwarebasic' opengl. The limitations of using the above settings can be found in this link: https://www.mathworks.com/help/matlab/ref/opengl.html?searchHighlight=opengl%20version&s_tid=doc_srchtitle#buwqhi1-8
2 Comments
Chad Greene
on 17 Nov 2022
Hannes Helmholz
on 3 May 2024
Same behaviour for me. Neither option provides a solution.
Categories
Find more on Printing and Saving in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!