How to change exponent position in an axis of a surface plot

조회 수: 30 (최근 30일)
Rakshith Manikandan
Rakshith Manikandan 2022년 5월 5일
댓글: Rakshith Manikandan 2022년 5월 7일
How do I change the position of the 10^(-3) in one of the grounded axes shown in this plot above!!

채택된 답변

dpb
dpb 2022년 5월 5일
편집: dpb 2022년 5월 7일
It's an undocumented property --
hAx=gca; % get axes handle
hY=hAx.YRuler; % and the subject axis ruler handle of interest
>> hY.SecondaryLabel
ans =
Text (\times10^{5}) with properties:
String: '\times10^{5}'
FontSize: 10
FontWeight: 'normal'
FontName: 'Helvetica'
Color: [0.15 0.15 0.15]
HorizontalAlignment: 'right'
Position: [-2.2905 1.342e+05 -2.0262]
Units: 'data'
Show all properties
>>
is the text() object handle -- you can set the 'Position' as desired

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by