Is there a way to remove individual tick labels

8 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Grid Lines, Tick Values, and Labels 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by