How to change ONLY Xtick direction (or Ytick direction)
32 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Erez
el 11 de Nov. de 2019
Comentada: Erez
el 11 de Nov. de 2019
I know I can set the tick direction to be pointing in our outside the plot box with
set(gca, 'TickDir', 'out')
I am trying to ONLY change the Xticks to point out but 'XTickDir' is not a property and I can't find anything in the docs about changing only 1 direction. Is it possible?
0 comentarios
Respuesta aceptada
Daniel M
el 11 de Nov. de 2019
You have to set the properties of the specific axis.
figure
plot(1:10)
ax = gca;
xax = ax.XAxis; % xax = get(ax,'XAxis');
set(xax,'TickDirection','out')
Más respuestas (0)
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!