problems to add yticklabel in log-log figure

2 次查看(过去 30 天)
Dear all,
I have some issue to illustrate a ytick label in a figure. Here is the piece of code related to this:
The ytick label 10^{0} does not appear in this case! Any ideas?
Cheers
  2 个评论
Adam Danz
Adam Danz 2019-2-19
编辑:Adam Danz 2019-2-19
Providing code is helpful, especially when it's in a format that can be copy/pasted.
Patrick Laux
Patrick Laux 2019-2-19
set(gca,'XScale','log', 'YScale','log', 'XTick', [0 0.5 1 2 6 12 24],'XTickLabel', ...
{'0','0.5','1','2','6','12','24'},'YMinorTick','on','YScale','log','YTick',...
[1 10 100 1000],'YTickLabel',{'10^{0}','10^{1},10^{2},10^{3}'})

请先登录,再进行评论。

回答(1 个)

Shuqiao Xie
Shuqiao Xie 2019-2-19
set(gca,'XScale','log', 'YScale','log', 'XTick', [0 0.5 1 2 6 12 24],'XTickLabel', ...
{'0','0.5','1','2','6','12','24'},'YMinorTick','on','YScale','log','YTick',...
[1 10 100 1000],'YTickLabel',{'10^{0}','10^{1}','10^{2}','10^{3}'})

类别

Help CenterFile Exchange 中查找有关 Axis Labels 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by