- 'Default'
- The value of the object's Type property
- The name of the property you want to set.
how to set default properties for annotations
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Johannes Weidenauer
am 3 Mai 2016
Bearbeitet: Johannes Weidenauer
am 4 Mai 2016
Is it possible to set the deafult properties for annotations? Something like set(0,'defaultAnnotationTextInterpreter','latex')?
Regards, Johannes
0 Kommentare
Akzeptierte Antwort
Mike Garrity
am 3 Mai 2016
The pattern is
So, if we check the Type property of an annotation:
h = annotation('textarrow');
h.Type
We get:
textarrowshape
And if we look for the property, we find that its name is 'Interpreter'. Therefore, we want to do this:
set(groot,'DefaultTextarrowshapeInterpreter','latex')
And then we can do this:
annotation('textarrow', ...
'String','$$ \int_{0}^{2} x^2\sin(x) dx $$', ...
'FontSize',12)
And we get this:
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!