필터 지우기
필터 지우기

How to set up a plot with labels but no Y-axis tick marks

조회 수: 1 (최근 30일)
weijie.zhu
weijie.zhu 2023년 11월 30일
댓글: Star Strider 2023년 11월 30일
How to set up a plot with labels but no Y-axis tick marks

채택된 답변

Star Strider
Star Strider 2023년 11월 30일
Perhaps this —
figure
boxchart(rand(10))
yt = yticks;
yline(yticks, '-k', 'Color',[1 1 1]*0.25)
Ax = gca;
Ax.YAxis.Visible = 0;
text(zeros(size(yt))-0.01*diff(double(xlim)), yt, compose('%g',yt), 'Horiz','right', 'Vert','middle')
.
  댓글 수: 2
weijie.zhu
weijie.zhu 2023년 11월 30일
Thank you very much for your help. Sincere wishes!
Star Strider
Star Strider 2023년 11월 30일
As always, my pleasure!
You, too!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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