Borrar filtros
Borrar filtros

removing numbers on axis without removing the grid lines

88 visualizaciones (últimos 30 días)
Hi all
When I use following command to remove numbers on the -y axis of a graph, it also removes the grid lines. How can I keep the grid lines?
set(gca,'YTick',[])
Regards
Suleyman

Respuesta aceptada

Walter Roberson
Walter Roberson el 11 de Mzo. de 2013
Leave the YTick alone, but set YTickLabel to []
  2 comentarios
Suleyman Deveci
Suleyman Deveci el 11 de Mzo. de 2013
Done. Thanks for your reply.
Igor Gitelman
Igor Gitelman el 30 de Nov. de 2022
thanks. Right to the corect options!!!

Iniciar sesión para comentar.

Más respuestas (2)

Achilleas
Achilleas el 23 de Jul. de 2018
The aforementioned solution didn't work for me, meaning that I wasn't able to activate the grid minor choice.
So, I used this 'xticklabel',num2str('').

C. Nwachoma
C. Nwachoma el 25 de Sept. de 2018
How do you reverse the process in case you remove the numbering on the wrong axis?

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by