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:
plot(rand(1,10))
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')
ans =
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:
I'm stumped!
  6 Comments

Sign in to comment.

Accepted Answer

Walter Roberson
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
get(groot,'DefaultAxesXLabel')
ans =
0×0 empty GraphicsPlaceholder array.
=====
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.
  14 Comments
Egor Ananyev
Egor Ananyev on 6 Jul 2021
Yes, Walter, your answer is better. Could you update it with the functions command for locating it?

Sign in to comment.

More Answers (2)

dpb
dpb on 4 Jul 2021
Edited: dpb on 5 Jul 2021
While not the answer to the bizarre behavior, a workaround until that can be found and resolved would be
delete(findall(gcf,'type','textbox'))
right after creating a new plot.
  6 Comments
dpb
dpb on 6 Jul 2021
Will be interesting to hear what is the end resolution of this specter, indeed... :)

Sign in to comment.


Steven Lord
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
  8 Comments
dpb
dpb on 5 Jul 2021
>> ver
-----------------------------------------------------------------------------------------------------
MATLAB Version: 9.9.0.1592791 (R2020b) Update 5
MATLAB License Number: xxxxx
Operating System: Microsoft Windows ...
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB Version 9.9 (R2020b)
Curve Fitting Toolbox Version 3.5.12 (R2020b)
MATLAB Compiler Version 8.1 (R2020b)
Optimization Toolbox Version 9.0 (R2020b)
Signal Processing Toolbox Version 8.5 (R2020b)
Statistics and Machine Learning Toolbox Version 12.0 (R2020b)
>>
As can see, besides being a release earlier (I generally only do the b releases), there's a veritable plethora of possibilities beyond which I have that could be the bad boy...or, of course, it could also be an artifact somehow introduced in R2021a or unique to Mac.

Sign in to comment.

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!