Y- axis marking

I am making various graphs in which the x axis consists of a time span of 0 to 2000 hours, my y axis consists of a variable that ranges from 0 to 11500. I am only interested in the gap between 9100 to 11500, and i can get that by using the ylim operation, however my problem is with apearance. i automatically get all my y axis variables labeled in scientific notation (ex. i get 9.4e003 instead of 9400), i am presenting the graphs and i would rather not have the y axis variables in scientific notation , i want (10000 instead of 1.0e004) how can i change this?

답변 (2개)

Sean de Wolski
Sean de Wolski 2012년 5월 25일

0 개 추천

Get it and reset it:
x = plot(1:100,rand(1,100)*120000);
ylim([8000 10000]);
set(gca,'yticklabel',get(gca,'yticklabel'))

댓글 수: 3

Mario
Mario 2012년 5월 25일
that isn't working for me, i end up not getting any labels and some strange occilating curves on my graph, is there some other way to modify the script?
Sean de Wolski
Sean de Wolski 2012년 5월 25일
It's random data just for the prupsoe of the example (th eoscillations) if you copy and paste the above, are the yticklabels as you expect?
Mario
Mario 2012년 5월 29일
okay i understand the random data, but i am still not getting any yticklabels.

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

Patrick Kalita
Patrick Kalita 2012년 5월 29일

0 개 추천

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

질문:

2012년 5월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by