Is there a way to remove individual tick labels
16 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
mttxc12
il 28 Gen 2016
Risposto: Walter Roberson
il 28 Gen 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 Commenti
Risposta accettata
Walter Roberson
il 28 Gen 2016
ax = gca; %or as appropriate
yticklabels = get(ax, 'YTickLabel');
yticklabels{end} = ''; %needs to exist but make it empty
set(ax, 'YTickLabel', yticklabels);
0 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!