displaying number in general format when using loglog plot

6 ビュー (過去 30 日間)
Jetson Ronald
Jetson Ronald 2013 年 5 月 9 日
Hello
How can I display number in general format (0 1 2 ....) instead of 10^1 when using loglog plot?
Thank You Jetson

回答 (1 件)

Tom Lane
Tom Lane 2013 年 5 月 10 日
I don't know if there is a direct way to do this, but the following shows a roundabout way. Just don't make a log plot, but instead plot on the log scale and label the y axes appropriately:
load census
subplot(1,2,1);
semilogy(cdate,pop)
subplot(1,2,2);
plot(cdate,log(pop))
set(gca,'YTick',[log(1),log(10),log(100),log(1000)],...
'YTickLabel',{'1' '10' '100' '1000'})
ylim([log(1),log(1000)]

カテゴリ

Help Center および File ExchangeVisual Exploration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by