Is there a way to remove individual tick labels
3 views (last 30 days)
Show older comments
mttxc12
on 28 Jan 2016
Answered: Walter Roberson
on 28 Jan 2016
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 Comments
Accepted Answer
Walter Roberson
on 28 Jan 2016
ax = gca; %or as appropriate
yticklabels = get(ax, 'YTickLabel');
yticklabels{end} = ''; %needs to exist but make it empty
set(ax, 'YTickLabel', yticklabels);
0 Comments
More Answers (0)
See Also
Categories
Find more on Axis Labels in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!