필터 지우기
필터 지우기

Getting rid of order of 10 axes labels

조회 수: 6 (최근 30일)
Thishan Dharshana Karandana Gamalathge
I have a plot with two Y-axes. On the Right side axis, I have to show the tick marks in a normal way rather than in the order of 10 (which the figure automatically shows). For an example, now the tick mark shows 2.5x10^4, but i need it appear as 25000.
  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 10월 25일
Which MATLAB release are you using? Since roughly R2015b there has been a nicer way of changing this.

댓글을 달려면 로그인하십시오.

채택된 답변

Adam
Adam 2017년 10월 25일
hAxes.YAxis.Exponent = 0;
should work, off the top of my head. I don't have Matlab with me at the moment to check though.
  댓글 수: 6
Walter Roberson
Walter Roberson 2017년 10월 26일
hAxes = gca;
hAxes.YAxis(2).Exponent = 0;
Thishan Dharshana Karandana Gamalathge
Thanks a lot. It worked.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Thishan Dharshana Karandana Gamalathge
MATLAB_R2016a

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by