フィルターのクリア

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 Center および File ExchangeAxis Labels についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by