Remove timestamps (date & time) that appear on every figure by default
11 views (last 30 days)
Running Matlab R2021a on a MacBook Pro, I'm getting time stamps on every single figure by default.
Example output, with the offending timestamp on the lower left:
I searched the Internet a few times and couldn't find anyone having the same problem as me. Too few people upgraded to R2021a, perhaps? Or maybe Mac-specific?
What I tried:
findobj(gcf, 'Type', 'text')
0×0 empty GraphicsPlaceholder array.
Eyeballing the gcf properties didn't turn up anything either, but lmk if you want the full output (I may post it as a comment).
Output with axis off:
Walter Roberson on 5 Jul 2021
Edited: Walter Roberson on 6 Jul 2021
I speculate that you just might have a groot property set. Something like
After further discussion, the key to this situation was to use
functions( get(groot, 'defaultFigureCreateFcn'))
to track down a function that had been set by a software package the user was using.
More Answers (2)
Steven Lord on 3 Jul 2021
Let's make sure first that no one has written functions that are taking precedence over the built-in graphics functions. Can you show us what each of these lines display in the Command Window?
which -all plot
which -all axes
which -all xlabel