Y- axis marking
1 回表示 (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
回答 (2 件)
Sean de Wolski
2012 年 5 月 25 日
Get it and reset it:
x = plot(1:100,rand(1,100)*120000);
ylim([8000 10000]);
set(gca,'yticklabel',get(gca,'yticklabel'))
3 件のコメント
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?
Patrick Kalita
2012 年 5 月 29 日
Use the technique described here: http://www.mathworks.com/support/solutions/en/data/1-16KCT/?solution=1-16KCT
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!