How to remove the tic labels but not the marks?
Mostrar comentarios más antiguos
I would like to remove tick marks on the y-axis but not on the x-axes. And I want to remove the labels (numbers) of all ticks.
Respuesta aceptada
Más respuestas (3)
Elias Gule
el 11 de Mzo. de 2015
%%Remove tick labels for the X and Y axes
tickCell = {'XTickLabel',{},'YTickLabel',{}};
set(gca,tickCell{:});
Elias Gule
el 11 de Mzo. de 2015
%%To remove tick marks on the y-axis
tickMarks = {'YTick',[]};
set(gca,tickMarks{:});
Sergio Yanez-Pagans
el 21 de Ag. de 2021
Editada: Walter Roberson
el 21 de Ag. de 2021
0 votos
This can also help you to create ticks:
Categorías
Más información sobre Axis Labels en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!