필터 지우기
필터 지우기

problems to add yticklabel in log-log figure

조회 수: 1 (최근 30일)
Patrick Laux
Patrick Laux 2019년 2월 19일
답변: Shuqiao Xie 2019년 2월 19일
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