Why is y-axis in loglog not 0?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hello,
I am plotting with "loglog". See code.
Why does the y-axis start at 100 and not 0 as I say it should be with y-lim?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146176/image.jpeg)
MockF1=[120 100 100 140 140 180 180 100 100 100 100];
MockN1=[38500 20000 23720 4096 4532 2754 1820 16921 8241 40622 19040]; figure
loglog(MockN1,MockF1,'o')
xlabel('N');
ylabel('F');
grid on
xlim([0 500000])
ylim([0 250])
0 Commenti
Risposta accettata
Più risposte (2)
Azzi Abdelmalek
il 20 Nov 2014
Modificato: Azzi Abdelmalek
il 20 Nov 2014
I think when you set ylim([0 200]) this will be interpreted as [log(0) log(200)]. That means [-Inf log(200)]
0 Commenti
Vedere anche
Categorie
Scopri di più su Log Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!