Why is the Y axis still in linear scale after setting 'YScale' to 'log'?
Mostra commenti meno recenti
Help! I want to show the X and Y in logarithmic scale. The X axis is changing just fine after setting 'XScale' to 'log', but the Y axis still looks linear. How do I solve this?
I am using MATLAB R2019a. The code I'm using is attached below. Thank you in advance.
Risposta accettata
Più risposte (1)
Chunru
il 19 Lug 2021
The yaxis is indeed in log scale. However, the ylim is in a small range as set by ylim ([0.6 1.1]) so it looks approximately linear.
To verify the log scale more clearly, you can set, for example, the ylim as:
ylim ([0.2 2])
1 Commento
Ni Made Ayu Sinta Dewi
il 19 Lug 2021
Categorie
Scopri di più su Log Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

