Plot in log-log

4 views (last 30 days)
Auryn_
Auryn_ on 24 May 2018
Answered: Auryn_ on 24 May 2018
Hi,
I am plotting in a log-log scale but the axis label does not display the numbers in a log scale. I have used
loglog(t,Exp, 'LineWidth',2,'Markersize',3)
hold all
and also set(gca, 'YScale', 'log') and it still does not work.
Thanks in advance for your reply.
  2 Comments
jonas
jonas on 24 May 2018
Can you show us your figure and code?
Auryn_
Auryn_ on 24 May 2018
Done.

Sign in to comment.

Accepted Answer

jonas
jonas on 24 May 2018
Edited: jonas on 24 May 2018
I'm fairly sure that is in fact a loglog-scale. Try:
axis([0.1 100 0.1 100])
and see for yourself. The y-range is too narrow to really label the axis as you expected.

More Answers (1)

Auryn_
Auryn_ on 24 May 2018
Awesome, thanks!

Community Treasure Hunt

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

Start Hunting!