Why does not semilogy works?
Show older comments
Printing semilogy and loglog and the gca indicate that no log x- or y-scale ar set
XScale: 'linear'
YScale: 'linear'
Do I have to go into the gca everyttime I would like to plot a log figure?
2 Comments
Jan
on 10 May 2021
Please post the corresponding code. It is not clear, what "go into gca" means.
Ove Gustafsson
on 10 May 2021
Answers (1)
Walter Roberson
on 10 May 2021
0 votes
loglog() and semilogy() and semilogx() have no effect if "hold on" is already in effect for the axes. You cannot mix log coordinates and linear coordinates in the same axes.
1 Comment
Ove Gustafsson
on 10 May 2021
Categories
Find more on Graphics Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!