Print in script outputs figures before all lines above it done, and other issues
Show older comments
With print, can I force a "wait until catchup" in a script? It seems presently my script is printing deformed figures. They show fine as figures after the script execution is over, and print fine then. But the script that is supposed to output several images occasionally produces crap. Crap has been:
Parts missing from the figure
Priting parts of a wrong figure to a given file
Not getting aspects right (axis versus font sizes)
I generally use set(gcf,'WindowState','maximized') to set a consistent figure size in script, and output with print('-dpng',..)
If it matters, I am working from a network drive location, with two computers running two independent matlabs "homed" to the same folder. (Both computers operate from the same screen, in case that matters for aspects)
Accepted Answer
More Answers (0)
Categories
Find more on Startup and Shutdown 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!