- '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 (최근 30일)
이전 댓글 표시
Is it possible to set the deafult properties for annotations? Something like set(0,'defaultAnnotationTextInterpreter','latex')?
Regards, Johannes
댓글 수: 0
채택된 답변
Mike Garrity
2016년 5월 3일
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
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!