Is there a way to remove individual tick labels
9 次查看(过去 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?
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!