필터 지우기
필터 지우기

Setting Default Properties for a Colorbar Label

조회 수: 10 (최근 30일)
MathWorks Support Team
MathWorks Support Team 2017년 12월 13일
답변: MathWorks Support Team 2017년 12월 20일
When I set default property values on groot, the properties are not applied to colorbar labels.  For example, see the following code:
>> set(groot,'defaultTextInterpreter','latex')
>> figure; ax=axes;
>> cb=colorbar;
>> cb.Label.Interpreter
>> ax.XLabel.Interpreter
When the code is executed, the XLabel Interpreter is 'latex' but the colorbar label Interpreter is 'tex'.
How can I set the default properties of the colorbar label? 
 

채택된 답변

MathWorks Support Team
MathWorks Support Team 2017년 12월 13일
As of MATLAB R2017b, it is not possible to set property defaults that apply to the colorbar label. 
As a workaround, you can set the properties of the colorbar label after the colorbar has been defined.  For example, you can use the following code to set the interpreter for the colorbar label:
 
>> figure;
>> cb=colorbar;
>> cb.Label.Interpreter='latex';

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Colorbar에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by