필터 지우기
필터 지우기

how can i change the xlim in bar?

조회 수: 7 (최근 30일)
Rt Ro
Rt Ro 2019년 5월 3일
댓글: Rt Ro 2019년 5월 3일
The x values change from 1970 to 2006, the below figure is between data and the years. (for each year I have 5 bars).
I want to show all years or each two years (1970, 1973,1975,...) on the x axis . how can I do it?
untitled.jpg

채택된 답변

Rik
Rik 2019년 5월 3일
You mean like this?
set(gca,'XTick',ceil(1970:2.5:2005))
  댓글 수: 1
Rt Ro
Rt Ro 2019년 5월 3일
Thank you it works well.

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by