Is there a way to remove individual tick labels

5 ビュー (過去 30 日間)
mttxc12
mttxc12 2016 年 1 月 28 日
回答済み: Walter Roberson 2016 年 1 月 28 日
II would like to remove the top right y-axis tick label (but not all the tick labels).
Is there a way to do this?

採用された回答

Walter Roberson
Walter Roberson 2016 年 1 月 28 日
ax = gca; %or as appropriate
yticklabels = get(ax, 'YTickLabel');
yticklabels{end} = ''; %needs to exist but make it empty
set(ax, 'YTickLabel', yticklabels);

その他の回答 (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