How do you remove x-axis tick marks and keep the numbers?
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
If I want to delete the tick marks on an x-axis only meanwhile keep the digits, what can I use? I tried set(gca,'TickLength'.[0 0.1]) but that removed the tickmarks for both the y and x-axis. I also tried set(gca,'XTick', []) but that removed the x-axis and all the digits.
0 comentarios
Respuestas (1)
Walter Roberson
el 30 de Jun. de 2022
plot(rand(1,20))
ax = gca;
ax.XAxis.TickLength = [0 0.1];
0 comentarios
Ver también
Categorías
Más información sobre Grid Lines, Tick Values, and Labels en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!